結果
問題 | No.796 well known |
ユーザー |
|
提出日時 | 2019-04-26 17:17:46 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 202 ms / 2,000 ms |
コード長 | 667 bytes |
コンパイル時間 | 5,843 ms |
コンパイル使用メモリ | 79,144 KB |
実行使用メモリ | 45,872 KB |
最終ジャッジ日時 | 2024-11-24 15:53:33 |
合計ジャッジ時間 | 9,466 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 |
ソースコード
import java.io.*; import java.util.Scanner; public class Main_yukicoder796 { private static Scanner sc; private static Printer pr; private static void solve() { int n = sc.nextInt(); for (int i = 0; i < n; i++) { if (i > 0) { pr.print(' '); } if (i == 0) { pr.print(1); } else { pr.print(3); } } pr.println(); } // --------------------------------------------------- public static void main(String[] args) { sc = new Scanner(System.in); pr = new Printer(System.out); solve(); pr.close(); sc.close(); } static class Printer extends PrintWriter { Printer(OutputStream out) { super(out); } } }