結果

問題 No.796 well known
ユーザー fog_878fog_878
提出日時 2019-03-15 23:53:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 158 ms / 2,000 ms
コード長 408 bytes
コンパイル時間 3,855 ms
コンパイル使用メモリ 71,184 KB
実行使用メモリ 57,356 KB
最終ジャッジ日時 2023-09-14 14:50:13
合計ジャッジ時間 6,528 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
55,796 KB
testcase_01 AC 117 ms
56,216 KB
testcase_02 AC 115 ms
55,780 KB
testcase_03 AC 116 ms
55,692 KB
testcase_04 AC 154 ms
55,940 KB
testcase_05 AC 154 ms
55,596 KB
testcase_06 AC 155 ms
55,716 KB
testcase_07 AC 128 ms
55,744 KB
testcase_08 AC 156 ms
55,776 KB
testcase_09 AC 148 ms
57,356 KB
testcase_10 AC 158 ms
55,884 KB
testcase_11 AC 128 ms
56,040 KB
testcase_12 AC 133 ms
55,760 KB
testcase_13 AC 153 ms
55,800 KB
testcase_14 AC 134 ms
55,780 KB
testcase_15 AC 130 ms
55,400 KB
testcase_16 AC 158 ms
55,996 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.solve();
	}

	void solve() {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		sc.close();

		StringBuilder sb = new StringBuilder();
		sb.append(1);
        for(int i=1; i<n;i++){
        	sb.append(" "+3);
        }
        System.out.println(sb);
	}

}
0