結果

問題 No.1910 High Element on Grid
ユーザー tassei903tassei903
提出日時 2022-05-28 15:29:55
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 638 bytes
コンパイル時間 335 ms
コンパイル使用メモリ 81,804 KB
実行使用メモリ 78,004 KB
最終ジャッジ日時 2023-10-20 23:11:00
合計ジャッジ時間 9,777 ms
ジャッジサーバーID
(参考情報)
judge12 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,560 KB
testcase_01 WA -
testcase_02 AC 36 ms
53,564 KB
testcase_03 WA -
testcase_04 AC 35 ms
53,564 KB
testcase_05 AC 35 ms
53,564 KB
testcase_06 WA -
testcase_07 AC 35 ms
53,564 KB
testcase_08 AC 36 ms
53,564 KB
testcase_09 AC 36 ms
53,564 KB
testcase_10 WA -
testcase_11 AC 80 ms
77,324 KB
testcase_12 AC 75 ms
77,432 KB
testcase_13 AC 74 ms
77,380 KB
testcase_14 WA -
testcase_15 AC 72 ms
77,112 KB
testcase_16 AC 71 ms
76,900 KB
testcase_17 AC 70 ms
77,020 KB
testcase_18 AC 76 ms
77,352 KB
testcase_19 AC 71 ms
76,988 KB
testcase_20 AC 70 ms
77,016 KB
testcase_21 AC 73 ms
77,300 KB
testcase_22 AC 67 ms
76,756 KB
testcase_23 AC 77 ms
77,512 KB
testcase_24 AC 69 ms
76,868 KB
testcase_25 AC 77 ms
77,236 KB
testcase_26 AC 75 ms
77,128 KB
testcase_27 AC 76 ms
77,200 KB
testcase_28 AC 67 ms
76,608 KB
testcase_29 AC 69 ms
76,880 KB
testcase_30 AC 71 ms
76,920 KB
testcase_31 AC 35 ms
53,564 KB
testcase_32 AC 84 ms
78,004 KB
testcase_33 AC 80 ms
78,000 KB
testcase_34 AC 86 ms
78,000 KB
testcase_35 AC 81 ms
78,004 KB
testcase_36 AC 46 ms
62,468 KB
testcase_37 AC 68 ms
76,808 KB
testcase_38 AC 63 ms
76,220 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
権限があれば一括ダウンロードができます

ソースコード

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+1

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

for i in a:
    print(*i)
0