結果

問題 No.1910 High Element on Grid
ユーザー tassei903tassei903
提出日時 2022-05-28 15:32:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 95 ms / 2,000 ms
コード長 634 bytes
コンパイル時間 193 ms
コンパイル使用メモリ 81,752 KB
実行使用メモリ 77,920 KB
最終ジャッジ日時 2023-10-20 23:11:10
合計ジャッジ時間 8,348 ms
ジャッジサーバーID
(参考情報)
judge10 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,488 KB
testcase_01 AC 38 ms
53,488 KB
testcase_02 AC 38 ms
53,488 KB
testcase_03 AC 39 ms
53,488 KB
testcase_04 AC 37 ms
53,488 KB
testcase_05 AC 38 ms
53,488 KB
testcase_06 AC 38 ms
53,488 KB
testcase_07 AC 39 ms
53,488 KB
testcase_08 AC 38 ms
53,488 KB
testcase_09 AC 38 ms
53,488 KB
testcase_10 AC 39 ms
53,488 KB
testcase_11 AC 77 ms
77,276 KB
testcase_12 AC 84 ms
77,388 KB
testcase_13 AC 81 ms
77,320 KB
testcase_14 AC 83 ms
77,612 KB
testcase_15 AC 75 ms
77,060 KB
testcase_16 AC 73 ms
76,832 KB
testcase_17 AC 75 ms
76,948 KB
testcase_18 AC 80 ms
77,340 KB
testcase_19 AC 80 ms
76,944 KB
testcase_20 AC 75 ms
76,940 KB
testcase_21 AC 79 ms
77,248 KB
testcase_22 AC 70 ms
76,712 KB
testcase_23 AC 83 ms
77,464 KB
testcase_24 AC 73 ms
76,792 KB
testcase_25 AC 78 ms
77,184 KB
testcase_26 AC 78 ms
77,068 KB
testcase_27 AC 78 ms
77,140 KB
testcase_28 AC 71 ms
76,548 KB
testcase_29 AC 73 ms
76,812 KB
testcase_30 AC 75 ms
76,844 KB
testcase_31 AC 38 ms
53,488 KB
testcase_32 AC 87 ms
77,920 KB
testcase_33 AC 95 ms
77,920 KB
testcase_34 AC 91 ms
77,912 KB
testcase_35 AC 91 ms
77,916 KB
testcase_36 AC 50 ms
62,408 KB
testcase_37 AC 74 ms
76,772 KB
testcase_38 AC 66 ms
76,176 KB
testcase_39 AC 58 ms
72,776 KB
testcase_40 AC 51 ms
64,432 KB
testcase_41 AC 73 ms
76,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda :sys.stdin.readline()[:-1]
ni = lambda :int(input())
na = lambda :list(map(int,input().split()))
yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES")
no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO")
#######################################################################
h,w = na()
r = na()
c = na()

a = [[0 for j in range(w)]for i in range(h)]
for i in range(h-1):
    for j in range(w-1):
        a[i+1][j+1] = i+j+2

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

for i in a:
    print(*i)
0