結果
問題 | No.964 2020 |
ユーザー | uwi |
提出日時 | 2020-01-13 18:59:25 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 118 ms / 2,020 ms |
コード長 | 913 bytes |
コンパイル時間 | 3,337 ms |
コンパイル使用メモリ | 74,880 KB |
実行使用メモリ | 56,196 KB |
最終ジャッジ日時 | 2023-08-23 11:00:03 |
合計ジャッジ時間 | 5,807 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 115 ms
55,224 KB |
testcase_01 | AC | 117 ms
55,460 KB |
testcase_02 | AC | 117 ms
55,780 KB |
testcase_03 | AC | 118 ms
55,800 KB |
testcase_04 | AC | 116 ms
55,736 KB |
testcase_05 | AC | 118 ms
55,476 KB |
testcase_06 | AC | 118 ms
56,048 KB |
testcase_07 | AC | 118 ms
56,196 KB |
testcase_08 | AC | 117 ms
55,232 KB |
testcase_09 | AC | 117 ms
55,920 KB |
ソースコード
package contest200113; import java.io.PrintWriter; import java.util.Arrays; import java.util.Scanner; public class A { static Scanner in; static PrintWriter out; static String INPUT = ""; static void solve() { // よくありそうな解法 int n = ni(); if(!(1 <= n && n <= 10))throw new RuntimeException(); for(int i = 1;i <= n;i++) { for(int j = 0;j < n;j++) { out.print(i%10); } } out.println(); } public static void main(String[] args) throws Exception { in = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(INPUT); out = new PrintWriter(System.out); solve(); out.flush(); } static int ni() { return Integer.parseInt(in.next()); } static long nl() { return Long.parseLong(in.next()); } static double nd() { return Double.parseDouble(in.next()); } static void tr(Object... o) { if(INPUT.length() != 0)System.out.println(Arrays.deepToString(o)); } }