結果

問題 No.1338 Giant Class
ユーザー kept1994kept1994
提出日時 2021-08-29 02:06:41
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 379 bytes
コンパイル時間 544 ms
コンパイル使用メモリ 86,520 KB
実行使用メモリ 832,464 KB
最終ジャッジ日時 2023-08-14 06:42:16
合計ジャッジ時間 8,597 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,128 KB
testcase_01 AC 72 ms
71,180 KB
testcase_02 AC 326 ms
79,252 KB
testcase_03 AC 74 ms
71,272 KB
testcase_04 AC 75 ms
70,988 KB
testcase_05 AC 79 ms
75,212 KB
testcase_06 AC 272 ms
147,684 KB
testcase_07 AC 360 ms
148,096 KB
testcase_08 AC 253 ms
100,860 KB
testcase_09 AC 235 ms
85,320 KB
testcase_10 AC 343 ms
101,496 KB
testcase_11 AC 147 ms
138,740 KB
testcase_12 AC 266 ms
79,120 KB
testcase_13 RE -
testcase_14 MLE -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys

def main():
    H, W, Q = map(int, input().split())
    ok = [H] * W
    all = H * W
    for _ in range(Q):
        y, x = map(lambda i: int(i) - 1, input().split())
        if ok[x] <= y:
            print(all)
            continue
        all -= ok[x] - y
        ok[x] = y
        print(all)
    return

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