Submission #1680498
Source Code Expand
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String base = "WBWBWWBWBWBWWBWBWWBWBWBW"; String S = sc.next(); int pos = base.indexOf(S); String ans = ""; switch(pos){ case 0: ans = "Do"; break; case 2: ans = "Re"; break; case 4: ans = "Mi"; break; case 5: ans = "Fa"; break; case 7: ans = "So"; break; case 9: ans = "La"; break; case 11: ans = "Si"; break; } System.out.println(ans); } }
Submission Info
Submission Time | |
---|---|
Task | C - ピアニスト高橋君 |
User | suesue |
Language | Java8 (OpenJDK 1.8.0) |
Score | 0 |
Code Size | 923 Byte |
Status | WA |
Exec Time | 99 ms |
Memory | 21844 KB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 100 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | example_0.txt |
All | example_0.txt, handmade_0.txt, handmade_1.txt, handmade_2.txt, handmade_3.txt, handmade_4.txt, handmade_5.txt, handmade_6.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
example_0.txt | AC | 93 ms | 21588 KB |
handmade_0.txt | AC | 91 ms | 20564 KB |
handmade_1.txt | AC | 99 ms | 19028 KB |
handmade_2.txt | AC | 92 ms | 21716 KB |
handmade_3.txt | WA | 91 ms | 21844 KB |
handmade_4.txt | WA | 91 ms | 19028 KB |
handmade_5.txt | WA | 92 ms | 21204 KB |
handmade_6.txt | WA | 90 ms | 19156 KB |