結果

問題 No.1910 High Element on Grid
ユーザー 👑 rin204rin204
提出日時 2022-05-06 15:35:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 375 bytes
コンパイル時間 360 ms
コンパイル使用メモリ 87,228 KB
実行使用メモリ 79,620 KB
最終ジャッジ日時 2023-09-19 04:58:20
合計ジャッジ時間 14,391 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,596 KB
testcase_01 AC 76 ms
71,328 KB
testcase_02 AC 80 ms
71,524 KB
testcase_03 AC 79 ms
71,284 KB
testcase_04 AC 77 ms
71,340 KB
testcase_05 AC 78 ms
71,424 KB
testcase_06 AC 80 ms
71,532 KB
testcase_07 AC 78 ms
71,520 KB
testcase_08 AC 79 ms
71,412 KB
testcase_09 AC 77 ms
71,144 KB
testcase_10 AC 79 ms
71,392 KB
testcase_11 AC 112 ms
78,816 KB
testcase_12 AC 112 ms
78,888 KB
testcase_13 AC 116 ms
78,640 KB
testcase_14 AC 119 ms
79,064 KB
testcase_15 AC 110 ms
78,584 KB
testcase_16 AC 107 ms
78,400 KB
testcase_17 AC 110 ms
78,300 KB
testcase_18 AC 114 ms
78,724 KB
testcase_19 AC 110 ms
78,572 KB
testcase_20 AC 111 ms
78,560 KB
testcase_21 AC 112 ms
78,812 KB
testcase_22 AC 106 ms
78,176 KB
testcase_23 AC 118 ms
78,732 KB
testcase_24 AC 109 ms
78,332 KB
testcase_25 AC 114 ms
78,796 KB
testcase_26 AC 108 ms
78,628 KB
testcase_27 AC 110 ms
78,840 KB
testcase_28 AC 107 ms
78,152 KB
testcase_29 AC 107 ms
78,316 KB
testcase_30 AC 109 ms
78,492 KB
testcase_31 AC 77 ms
71,348 KB
testcase_32 AC 126 ms
79,352 KB
testcase_33 AC 121 ms
79,620 KB
testcase_34 AC 124 ms
79,592 KB
testcase_35 AC 123 ms
79,388 KB
testcase_36 AC 88 ms
76,412 KB
testcase_37 AC 105 ms
78,332 KB
testcase_38 AC 104 ms
77,732 KB
testcase_39 AC 94 ms
76,816 KB
testcase_40 AC 88 ms
76,808 KB
testcase_41 AC 97 ms
77,632 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

A = [[0] * w for _ in range(h)]
for i in range(h):
    for j in range(w):
        A[i][j] = (i * w + j) * 100

A[0][0] = 10 ** 9

for i in range(1, h):
    A[i][0] = A[i][-R[i]] + 30

for j in range(1, w):
    A[0][j] = A[-C[j]][j] + 70


for row in A:
    print(*row)
0