結果

問題 No.1338 Giant Class
ユーザー kept1994
提出日時 2021-08-29 02:06:41
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 379 bytes
コンパイル時間 429 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 851,584 KB
最終ジャッジ日時 2024-11-22 01:34:45
合計ジャッジ時間 8,743 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 11 RE * 7 MLE * 3
権限があれば一括ダウンロードができます

ソースコード

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