結果

問題 No.1910 High Element on Grid
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-04-23 10:22:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 113 ms / 2,000 ms
コード長 313 bytes
コンパイル時間 1,997 ms
コンパイル使用メモリ 87,028 KB
実行使用メモリ 79,504 KB
最終ジャッジ日時 2023-09-07 02:35:35
合計ジャッジ時間 14,286 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,340 KB
testcase_01 AC 69 ms
71,284 KB
testcase_02 AC 71 ms
71,448 KB
testcase_03 AC 70 ms
71,288 KB
testcase_04 AC 69 ms
71,468 KB
testcase_05 AC 71 ms
71,432 KB
testcase_06 AC 70 ms
71,440 KB
testcase_07 AC 70 ms
71,276 KB
testcase_08 AC 69 ms
71,428 KB
testcase_09 AC 71 ms
71,388 KB
testcase_10 AC 69 ms
71,452 KB
testcase_11 AC 108 ms
78,540 KB
testcase_12 AC 103 ms
78,704 KB
testcase_13 AC 99 ms
78,752 KB
testcase_14 AC 104 ms
79,028 KB
testcase_15 AC 98 ms
78,380 KB
testcase_16 AC 98 ms
78,340 KB
testcase_17 AC 98 ms
78,320 KB
testcase_18 AC 102 ms
78,920 KB
testcase_19 AC 100 ms
78,588 KB
testcase_20 AC 96 ms
78,604 KB
testcase_21 AC 99 ms
78,704 KB
testcase_22 AC 93 ms
78,032 KB
testcase_23 AC 101 ms
79,080 KB
testcase_24 AC 95 ms
78,316 KB
testcase_25 AC 104 ms
78,608 KB
testcase_26 AC 99 ms
78,788 KB
testcase_27 AC 102 ms
78,532 KB
testcase_28 AC 93 ms
77,844 KB
testcase_29 AC 94 ms
78,324 KB
testcase_30 AC 95 ms
78,324 KB
testcase_31 AC 69 ms
71,124 KB
testcase_32 AC 113 ms
79,348 KB
testcase_33 AC 108 ms
79,472 KB
testcase_34 AC 106 ms
79,348 KB
testcase_35 AC 108 ms
79,504 KB
testcase_36 AC 80 ms
76,584 KB
testcase_37 AC 95 ms
78,316 KB
testcase_38 AC 89 ms
77,760 KB
testcase_39 AC 82 ms
76,488 KB
testcase_40 AC 80 ms
76,360 KB
testcase_41 AC 93 ms
77,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

h,w = map(int,input().split())
R = list(map(int,input().split()))
C = list(map(int,input().split()))

ans = [[i+j for j in range(w)] for i in range(h)]
ans[0][0] = 10**9
for i in range(1,h):
    r = R[i]
    ans[i][0] = i+w-r

for i in range(1,w):
    c = C[i]
    ans[0][i] = (i+h)-c

for i in ans:
    print(*i)
0