結果

問題 No.3004 愛国心
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2016-12-02 18:13:31
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 5,000 ms
コード長 308 bytes
コンパイル時間 1,829 ms
コンパイル使用メモリ 71,892 KB
実行使用メモリ 55,704 KB
最終ジャッジ日時 2023-08-18 12:20:47
合計ジャッジ時間 3,214 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
55,688 KB
testcase_01 AC 120 ms
55,704 KB
testcase_02 AC 118 ms
55,684 KB
testcase_03 AC 115 ms
55,624 KB
testcase_04 AC 120 ms
55,700 KB
権限があれば一括ダウンロードができます

ソースコード

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