結果

問題 No.494 yukicoder
ユーザー TwinkleStar74TwinkleStar74
提出日時 2017-10-07 01:58:51
言語 Java21
(openjdk 21)
結果
AC  
実行時間 56 ms / 2,000 ms
コード長 1,133 bytes
コンパイル時間 3,274 ms
コンパイル使用メモリ 75,060 KB
実行使用メモリ 50,224 KB
最終ジャッジ日時 2024-04-28 11:57:25
合計ジャッジ時間 4,411 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
49,668 KB
testcase_01 AC 55 ms
50,100 KB
testcase_02 AC 56 ms
50,040 KB
testcase_03 AC 55 ms
50,104 KB
testcase_04 AC 55 ms
49,808 KB
testcase_05 AC 55 ms
49,836 KB
testcase_06 AC 56 ms
49,720 KB
testcase_07 AC 53 ms
50,224 KB
testcase_08 AC 55 ms
49,880 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