結果

問題 No.964 2020
ユーザー masa_ahemasa_ahe
提出日時 2020-03-12 13:43:29
言語 Java21
(openjdk 21)
結果
AC  
実行時間 161 ms / 2,020 ms
コード長 282 bytes
コンパイル時間 2,786 ms
コンパイル使用メモリ 73,320 KB
実行使用メモリ 58,748 KB
最終ジャッジ日時 2023-08-11 06:07:45
合計ジャッジ時間 5,457 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 159 ms
58,504 KB
testcase_01 AC 159 ms
56,796 KB
testcase_02 AC 161 ms
56,348 KB
testcase_03 AC 159 ms
56,720 KB
testcase_04 AC 161 ms
56,448 KB
testcase_05 AC 161 ms
58,748 KB
testcase_06 AC 158 ms
56,460 KB
testcase_07 AC 161 ms
56,560 KB
testcase_08 AC 159 ms
56,648 KB
testcase_09 AC 159 ms
56,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		int x=sc.nextInt();
		String ans="";
		for(int i=1;i<=x;i++){
			int tmp=x;
			while(tmp>0){
				tmp--;
				ans+=(i%10);
			}
		}
		System.out.println(ans);
	}
}
0