結果

問題 No.964 2020
ユーザー yukiyuki
提出日時 2020-08-18 11:21:26
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 648 bytes
コンパイル時間 1,845 ms
コンパイル使用メモリ 75,112 KB
実行使用メモリ 54,224 KB
最終ジャッジ日時 2024-04-20 07:26:21
合計ジャッジ時間 3,933 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
54,072 KB
testcase_01 AC 121 ms
54,148 KB
testcase_02 AC 118 ms
54,224 KB
testcase_03 AC 116 ms
53,932 KB
testcase_04 AC 101 ms
52,380 KB
testcase_05 AC 116 ms
53,468 KB
testcase_06 AC 121 ms
54,212 KB
testcase_07 AC 107 ms
53,004 KB
testcase_08 AC 119 ms
54,040 KB
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.util.Scanner;

public class Main {
	public static void main (String[] args) {
		Scanner in = new Scanner(System.in);
        List<Integer> list = new ArrayList<>();
		int N = in.nextInt();
        int kind = N;
        
        for(int i=0; i<kind; i++){
            // Nが9までに達すると、0に戻る
            if(N > 9){
                N = 0;
            }
            list.add(N);
        
            N++;
        }
        for(int i=0; i<kind; i++){
            String num = Integer.toString(list.get(i));
            for(int j=0; j<kind; j++)
                System.out.print(num);
        }
   }

}
0