結果

問題 No.796 well known
ユーザー fog_878
提出日時 2019-03-15 23:53:57
言語 Java
(openjdk 23)
結果
AC  
実行時間 169 ms / 2,000 ms
コード長 408 bytes
コンパイル時間 2,221 ms
コンパイル使用メモリ 75,248 KB
実行使用メモリ 42,280 KB
最終ジャッジ日時 2024-07-01 22:08:20
合計ジャッジ時間 5,818 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

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