Submission #1514620


Source Code Expand

import java.util.Scanner;

public class Main {
	private static final String base = "WBWBWWBWBWBWWBWBWWBWBWBWWBWBWWBWBWBW";
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int index = base.indexOf(s);
		String ans = "";
		switch(index) {
			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 kouta1612
Language Java8 (OpenJDK 1.8.0)
Score 100
Code Size 606 Byte
Status AC
Exec Time 90 ms
Memory 23764 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 1
AC × 8
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 88 ms 19668 KB
handmade_0.txt AC 89 ms 23764 KB
handmade_1.txt AC 86 ms 23636 KB
handmade_2.txt AC 88 ms 20564 KB
handmade_3.txt AC 90 ms 21460 KB
handmade_4.txt AC 88 ms 19412 KB
handmade_5.txt AC 88 ms 19668 KB
handmade_6.txt AC 88 ms 20820 KB