Created
October 14, 2017 02:44
-
-
Save suenagasuenaga7/73c10dbc9a08be8cd178d0118251897c to your computer and use it in GitHub Desktop.
ARC039C
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
public class Main { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
String base = "WBWBWWBWBWBWWBWBWWBWBWBWWBWBWWBWBWBW"; | |
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); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ok