結果

問題 No.1910 High Element on Grid
ユーザー chineristACchineristAC
提出日時 2022-02-25 03:53:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 356 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 86,600 KB
実行使用メモリ 79,500 KB
最終ジャッジ日時 2023-09-15 14:23:19
合計ジャッジ時間 11,752 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,336 KB
testcase_01 AC 70 ms
71,084 KB
testcase_02 AC 70 ms
71,212 KB
testcase_03 AC 72 ms
71,312 KB
testcase_04 AC 72 ms
71,232 KB
testcase_05 AC 71 ms
71,132 KB
testcase_06 AC 70 ms
71,088 KB
testcase_07 AC 70 ms
70,800 KB
testcase_08 AC 70 ms
71,328 KB
testcase_09 AC 71 ms
71,108 KB
testcase_10 AC 69 ms
71,328 KB
testcase_11 AC 117 ms
78,484 KB
testcase_12 AC 105 ms
78,852 KB
testcase_13 AC 104 ms
78,636 KB
testcase_14 AC 108 ms
79,080 KB
testcase_15 AC 99 ms
78,340 KB
testcase_16 AC 98 ms
78,080 KB
testcase_17 AC 100 ms
78,616 KB
testcase_18 AC 106 ms
78,812 KB
testcase_19 AC 101 ms
78,388 KB
testcase_20 AC 102 ms
78,616 KB
testcase_21 AC 104 ms
78,796 KB
testcase_22 AC 99 ms
77,992 KB
testcase_23 AC 108 ms
78,776 KB
testcase_24 AC 101 ms
78,048 KB
testcase_25 AC 106 ms
78,672 KB
testcase_26 AC 104 ms
78,600 KB
testcase_27 AC 105 ms
78,664 KB
testcase_28 AC 98 ms
77,848 KB
testcase_29 AC 99 ms
78,324 KB
testcase_30 AC 102 ms
78,272 KB
testcase_31 AC 70 ms
71,140 KB
testcase_32 AC 112 ms
79,500 KB
testcase_33 AC 120 ms
79,268 KB
testcase_34 AC 111 ms
79,004 KB
testcase_35 AC 111 ms
79,260 KB
testcase_36 AC 80 ms
76,512 KB
testcase_37 AC 96 ms
77,772 KB
testcase_38 AC 93 ms
77,776 KB
testcase_39 AC 87 ms
77,388 KB
testcase_40 AC 82 ms
76,512 KB
testcase_41 AC 93 ms
77,588 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

H,W = map(int,input().split())
R = list(map(int,input().split()))
C = list(map(int,input().split()))

A = [[i+j+2 for j in range(W)] for i in range(H)]

for i in range(H):
    for j in range(W):
        if i==0:
            A[i][j] = j+H+2-C[j]
        if j==0:
            A[i][j] = i+W+2-R[i]
A[0][0] = 10**9
for i in range(H):
    print(*A[i])
        
0