結果

問題 No.1399 すごろくで世界旅行 (構築)
ユーザー convexineqconvexineq
提出日時 2021-02-19 21:45:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 79 ms / 3,153 ms
コード長 144 bytes
コンパイル時間 3,165 ms
コンパイル使用メモリ 86,380 KB
実行使用メモリ 75,164 KB
最終ジャッジ日時 2023-10-15 00:38:12
合計ジャッジ時間 21,427 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
70,952 KB
testcase_01 AC 68 ms
70,956 KB
testcase_02 AC 71 ms
70,956 KB
testcase_03 AC 69 ms
70,976 KB
testcase_04 AC 69 ms
70,828 KB
testcase_05 AC 68 ms
71,040 KB
testcase_06 AC 69 ms
71,088 KB
testcase_07 AC 70 ms
70,884 KB
testcase_08 AC 69 ms
70,972 KB
testcase_09 AC 69 ms
71,068 KB
testcase_10 AC 68 ms
70,896 KB
testcase_11 AC 69 ms
71,156 KB
testcase_12 AC 70 ms
70,748 KB
testcase_13 AC 69 ms
70,792 KB
testcase_14 AC 68 ms
71,080 KB
testcase_15 AC 69 ms
71,044 KB
testcase_16 AC 69 ms
70,900 KB
testcase_17 AC 76 ms
74,748 KB
testcase_18 AC 78 ms
75,096 KB
testcase_19 AC 79 ms
75,036 KB
testcase_20 AC 77 ms
75,164 KB
testcase_21 AC 77 ms
75,036 KB
testcase_22 AC 76 ms
75,104 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

v,d = map(int,input().split())
if d==1:
    for _ in range(v): print("1"*v)
else:
    print("1"*v)
    for _ in range(v-1): print("1"+"0"*(v-1))
0