結果

問題 No.8004 愛国心
ユーザー マサ
提出日時 2022-09-08 21:34:32
言語 Java
(openjdk 23)
結果
AC  
実行時間 118 ms / 5,000 ms
コード長 331 bytes
コンパイル時間 2,141 ms
コンパイル使用メモリ 74,372 KB
実行使用メモリ 54,152 KB
最終ジャッジ日時 2024-11-24 18:11:58
合計ジャッジ時間 3,358 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		String[] ary = {"y", "u", "k", "i", "c", "o", "d", "e", "r"};
		
		int num = sc.nextInt();
		while (num != 0) {
			System.out.println(ary[num - 1]);
			num = sc.nextInt();
		}
		
		sc.close();
	}
}
0