結果

問題 No.8004 愛国心
ユーザー Maeda
提出日時 2025-09-11 11:50:02
言語 Java
(openjdk 23)
結果
AC  
実行時間 115 ms / 5,000 ms
コード長 306 bytes
コンパイル時間 2,112 ms
コンパイル使用メモリ 76,904 KB
実行使用メモリ 46,744 KB
最終ジャッジ日時 2025-09-11 11:50:06
合計ジャッジ時間 3,587 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Main {
    public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		final String Sample = "yukicoder";
		int n = -1;
		while(n != 0){
			n = scan.nextInt();
			if(n == 0){
				break;
			}
			System.out.println(Sample.charAt(n-1));
			
		}
    }
}
0