結果

問題 No.494 yukicoder
ユーザー TwinkleStar74TwinkleStar74
提出日時 2017-10-07 02:01:15
言語 Java21
(openjdk 21)
結果
AC  
実行時間 53 ms / 2,000 ms
コード長 1,133 bytes
コンパイル時間 3,562 ms
コンパイル使用メモリ 73,560 KB
実行使用メモリ 37,268 KB
最終ジャッジ日時 2024-04-28 11:57:44
合計ジャッジ時間 4,407 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
36,940 KB
testcase_01 AC 52 ms
37,116 KB
testcase_02 AC 53 ms
37,180 KB
testcase_03 AC 53 ms
37,028 KB
testcase_04 AC 53 ms
36,840 KB
testcase_05 AC 52 ms
37,268 KB
testcase_06 AC 53 ms
37,016 KB
testcase_07 AC 52 ms
36,940 KB
testcase_08 AC 51 ms
37,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No494 {
	public static void main(String[] args) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String str = br.readLine();
			Hantei(str);
			
		} catch (IOException e) {
			e.getStackTrace();
		}
	}
	
	public static void Hantei(String s){
		int a = s.indexOf("?");
		switch(a){
		    case 0:
		        System.out.println("y");
		        break;
		        
		    case 1:
		        System.out.println("u");
		        break;
		        
		    case 2:
		        System.out.println("k");
		        break;
		        
		    case 3:
		        System.out.println("i");
		        break;
		        
		    case 4:
		        System.out.println("c");
		        break;
		        
		    case 5:
		        System.out.println("o");
		        break;
		        
		    case 6:
		        System.out.println("d");
		        break;
		        
		    case 7:
		        System.out.println("e");
		        break;
		        
		    case 8:
		        System.out.println("r");
		        break;
		        
		}
		
	}
}
0