結果

問題 No.1910 High Element on Grid
ユーザー 👑 tamatotamato
提出日時 2022-04-22 22:25:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 116 ms / 2,000 ms
コード長 558 bytes
コンパイル時間 474 ms
コンパイル使用メモリ 87,232 KB
実行使用メモリ 79,536 KB
最終ジャッジ日時 2023-09-06 08:59:25
合計ジャッジ時間 11,490 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,260 KB
testcase_01 AC 71 ms
71,360 KB
testcase_02 AC 72 ms
71,332 KB
testcase_03 AC 73 ms
71,468 KB
testcase_04 AC 71 ms
71,212 KB
testcase_05 AC 71 ms
71,092 KB
testcase_06 AC 69 ms
71,384 KB
testcase_07 AC 70 ms
71,384 KB
testcase_08 AC 73 ms
71,304 KB
testcase_09 AC 71 ms
71,636 KB
testcase_10 AC 72 ms
71,300 KB
testcase_11 AC 105 ms
78,800 KB
testcase_12 AC 108 ms
79,004 KB
testcase_13 AC 106 ms
78,900 KB
testcase_14 AC 113 ms
78,864 KB
testcase_15 AC 101 ms
78,312 KB
testcase_16 AC 100 ms
78,436 KB
testcase_17 AC 103 ms
78,636 KB
testcase_18 AC 106 ms
78,852 KB
testcase_19 AC 102 ms
78,548 KB
testcase_20 AC 101 ms
78,604 KB
testcase_21 AC 103 ms
78,820 KB
testcase_22 AC 96 ms
78,272 KB
testcase_23 AC 108 ms
79,048 KB
testcase_24 AC 98 ms
78,360 KB
testcase_25 AC 104 ms
78,452 KB
testcase_26 AC 104 ms
78,664 KB
testcase_27 AC 107 ms
78,668 KB
testcase_28 AC 98 ms
78,032 KB
testcase_29 AC 100 ms
78,328 KB
testcase_30 AC 101 ms
78,592 KB
testcase_31 AC 71 ms
71,384 KB
testcase_32 AC 115 ms
79,180 KB
testcase_33 AC 116 ms
79,504 KB
testcase_34 AC 115 ms
79,184 KB
testcase_35 AC 114 ms
79,536 KB
testcase_36 AC 81 ms
76,664 KB
testcase_37 AC 98 ms
78,336 KB
testcase_38 AC 96 ms
77,788 KB
testcase_39 AC 87 ms
76,716 KB
testcase_40 AC 82 ms
76,532 KB
testcase_41 AC 92 ms
77,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 998244353


def main():
    import sys
    input = sys.stdin.readline

    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 h in range(H):
        for w in range(W):
            A[h][w] = h * W + w + 1

    for h in range(H):
        r = R[h]
        A[h][0] = A[h][-r]
    for w in range(W):
        c = C[w]
        A[0][w] = A[-c][w]
    A[0][0] = 10 ** 8
    for h in range(H):
        print(*A[h])


if __name__ == '__main__':
    main()
0