結果

問題 No.964 2020
ユーザー masa_ahemasa_ahe
提出日時 2020-03-12 13:40:54
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 279 bytes
コンパイル時間 2,359 ms
コンパイル使用メモリ 76,380 KB
実行使用メモリ 42,468 KB
最終ジャッジ日時 2024-04-28 22:44:11
合計ジャッジ時間 5,139 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 162 ms
42,228 KB
testcase_01 AC 157 ms
42,336 KB
testcase_02 AC 167 ms
42,368 KB
testcase_03 AC 163 ms
42,324 KB
testcase_04 AC 161 ms
41,840 KB
testcase_05 AC 173 ms
41,968 KB
testcase_06 AC 161 ms
42,100 KB
testcase_07 AC 171 ms
42,420 KB
testcase_08 AC 174 ms
42,264 KB
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

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);
			}
		}
		System.out.println(ans);
	}
}
0