Submission #1247453
Source Code Expand
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); String s=sc.next(); s=s.replace("WBWBWWBWBWBW", "A"); int n=s.indexOf("A"); switch(n){ case 0:System.out.println("Do");break; case 1:System.out.println("Re");break; case 2:System.out.println("Mi");break; case 3:System.out.println("Fa");break; case 4:System.out.println("So");break; case 5:System.out.println("La");break; case 6:System.out.println("Si");break; } } }
Submission Info
Submission Time | |
---|---|
Task | C - ピアニスト高橋君 |
User | kwkm0429 |
Language | Java8 (OpenJDK 1.8.0) |
Score | 0 |
Code Size | 538 Byte |
Status | WA |
Exec Time | 92 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 | 90 ms | 21716 KB |
handmade_0.txt | AC | 89 ms | 21844 KB |
handmade_1.txt | WA | 89 ms | 19028 KB |
handmade_2.txt | WA | 92 ms | 19668 KB |
handmade_3.txt | WA | 90 ms | 17364 KB |
handmade_4.txt | WA | 89 ms | 21716 KB |
handmade_5.txt | WA | 88 ms | 21844 KB |
handmade_6.txt | WA | 90 ms | 21716 KB |