結果

問題 No.1338 Giant Class
ユーザー kept1994kept1994
提出日時 2021-08-29 02:08:42
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 379 bytes
コンパイル時間 122 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 819,764 KB
最終ジャッジ日時 2024-11-22 01:35:06
合計ジャッジ時間 9,388 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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