結果

問題 No.494 yukicoder
ユーザー マサマサ
提出日時 2022-02-09 15:41:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 665 bytes
コンパイル時間 2,008 ms
コンパイル使用メモリ 71,456 KB
実行使用メモリ 56,052 KB
最終ジャッジ日時 2023-09-07 00:49:44
合計ジャッジ時間 3,972 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,872 KB
testcase_01 AC 119 ms
55,808 KB
testcase_02 AC 116 ms
55,568 KB
testcase_03 AC 118 ms
55,864 KB
testcase_04 AC 117 ms
55,692 KB
testcase_05 AC 118 ms
56,052 KB
testcase_06 AC 117 ms
55,760 KB
testcase_07 AC 117 ms
55,792 KB
testcase_08 AC 118 ms
55,332 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.next();
		
		int index = str.indexOf("?");
		
		switch (index) {
		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;
		}
		sc.close();
	}
}
0