結果

問題 No.1910 High Element on Grid
ユーザー ytftytft
提出日時 2022-04-23 01:08:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 113 ms / 2,000 ms
コード長 297 bytes
コンパイル時間 398 ms
コンパイル使用メモリ 87,128 KB
実行使用メモリ 79,560 KB
最終ジャッジ日時 2023-09-06 12:03:06
合計ジャッジ時間 11,416 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,332 KB
testcase_01 AC 74 ms
71,392 KB
testcase_02 AC 74 ms
71,400 KB
testcase_03 AC 74 ms
71,252 KB
testcase_04 AC 74 ms
71,456 KB
testcase_05 AC 73 ms
71,460 KB
testcase_06 AC 74 ms
71,596 KB
testcase_07 AC 73 ms
71,272 KB
testcase_08 AC 73 ms
71,348 KB
testcase_09 AC 73 ms
71,268 KB
testcase_10 AC 72 ms
71,384 KB
testcase_11 AC 106 ms
78,624 KB
testcase_12 AC 106 ms
78,976 KB
testcase_13 AC 106 ms
78,844 KB
testcase_14 AC 110 ms
79,056 KB
testcase_15 AC 102 ms
78,240 KB
testcase_16 AC 100 ms
78,224 KB
testcase_17 AC 101 ms
78,596 KB
testcase_18 AC 107 ms
78,788 KB
testcase_19 AC 102 ms
78,588 KB
testcase_20 AC 102 ms
78,320 KB
testcase_21 AC 108 ms
78,748 KB
testcase_22 AC 102 ms
78,304 KB
testcase_23 AC 108 ms
79,096 KB
testcase_24 AC 101 ms
78,160 KB
testcase_25 AC 105 ms
78,800 KB
testcase_26 AC 105 ms
78,648 KB
testcase_27 AC 103 ms
78,468 KB
testcase_28 AC 98 ms
78,156 KB
testcase_29 AC 102 ms
78,380 KB
testcase_30 AC 102 ms
78,204 KB
testcase_31 AC 74 ms
71,180 KB
testcase_32 AC 113 ms
79,484 KB
testcase_33 AC 113 ms
79,528 KB
testcase_34 AC 112 ms
79,560 KB
testcase_35 AC 112 ms
79,496 KB
testcase_36 AC 83 ms
76,480 KB
testcase_37 AC 99 ms
78,244 KB
testcase_38 AC 95 ms
77,672 KB
testcase_39 AC 87 ms
76,616 KB
testcase_40 AC 84 ms
76,724 KB
testcase_41 AC 95 ms
77,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

H,W=map(int,input().split())
R=list(map(int,input().split()))
C=list(map(int,input().split()))
ans=[[i+j for i in range(W)] for j in range(H)]
ans[0][0]=pow(10,9)
for i in range(1,H):
	ans[i][0]=ans[i][-1]+1-R[i]
for i in range(1,W):
	ans[0][i]=ans[-1][i]+1-C[i]
for i in range(H):
	print(*ans[i])
0