結果

問題 No.3004 愛国心
ユーザー Mcpu3Mcpu3
提出日時 2018-06-22 19:53:47
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 5,000 ms
コード長 581 bytes
コンパイル時間 2,039 ms
コンパイル使用メモリ 71,180 KB
実行使用メモリ 56,608 KB
最終ジャッジ日時 2023-09-13 08:04:54
合計ジャッジ時間 3,231 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
56,112 KB
testcase_01 AC 119 ms
54,280 KB
testcase_02 AC 120 ms
55,800 KB
testcase_03 AC 119 ms
56,608 KB
testcase_04 AC 120 ms
56,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class no3004{
	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int n;
		while(true) {
			n=stdIn.nextInt();
			if(n==0) break;
			if(n==1) System.out.println("y");
			else if(n==2) System.out.println("u");
			else if(n==3) System.out.println("k");
			else if(n==4) System.out.println("i");
			else if(n==5) System.out.println("c");
			else if(n==6) System.out.println("o");
			else if(n==7) System.out.println("d");
			else if(n==8) System.out.println("e");
			else System.out.println("r");
		}
	}
}
0