結果

問題 No.1399 すごろくで世界旅行 (構築)
ユーザー shojin_proshojin_pro
提出日時 2021-02-19 22:50:02
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 530 bytes
コンパイル時間 2,592 ms
コンパイル使用メモリ 70,868 KB
実行使用メモリ 68,820 KB
最終ジャッジ日時 2023-10-15 03:56:02
合計ジャッジ時間 37,960 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
55,752 KB
testcase_01 AC 126 ms
55,724 KB
testcase_02 AC 123 ms
56,268 KB
testcase_03 AC 125 ms
55,932 KB
testcase_04 AC 123 ms
55,776 KB
testcase_05 WA -
testcase_06 AC 125 ms
55,628 KB
testcase_07 AC 122 ms
55,780 KB
testcase_08 AC 124 ms
55,840 KB
testcase_09 WA -
testcase_10 AC 125 ms
55,876 KB
testcase_11 AC 128 ms
55,976 KB
testcase_12 AC 125 ms
55,976 KB
testcase_13 WA -
testcase_14 AC 127 ms
55,488 KB
testcase_15 AC 128 ms
55,432 KB
testcase_16 AC 125 ms
55,880 KB
testcase_17 AC 2,184 ms
67,888 KB
testcase_18 AC 2,028 ms
65,916 KB
testcase_19 AC 2,029 ms
65,488 KB
testcase_20 AC 2,157 ms
66,752 KB
testcase_21 AC 2,124 ms
66,908 KB
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int d = sc.nextInt();
        for(int i = 0; i < n; i++){
            for(int j = 0; j < n; j++){
                if(i == 0 || j == 0){
                    System.out.print(1);
                }else{
                    System.out.print(0);
                }
            }
            System.out.println();
        }
    }

}
0