結果

問題 No.8004 愛国心
ユーザー kohaku_kohaku
提出日時 2016-12-02 18:13:31
言語 Java
(openjdk 23)
結果
AC  
実行時間 123 ms / 5,000 ms
コード長 308 bytes
コンパイル時間 1,829 ms
コンパイル使用メモリ 74,056 KB
実行使用メモリ 41,396 KB
最終ジャッジ日時 2024-11-27 17:21:04
合計ジャッジ時間 2,956 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = "yukicoder";
        int N = sc.nextInt();
        while(N!=0){
            System.out.println(S.charAt(N-1));
            N = sc.nextInt();
        }
    }
}
0