結果
| 問題 | No.1338 Giant Class |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-02-13 09:50:44 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 236 bytes |
| 記録 | |
| コンパイル時間 | 237 ms |
| コンパイル使用メモリ | 96,232 KB |
| 実行使用メモリ | 1,335,680 KB |
| 最終ジャッジ日時 | 2026-07-21 07:16:24 |
| 合計ジャッジ時間 | 6,807 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 RE * 1 MLE * 3 -- * 6 |
ソースコード
H,W,Q = map(int,input().split())
A = [H+1]*(W+1)
tot = H*W
for _ in range(Q):
y,x = map(int,input().split())
if A[x]<y:
print(tot)
else:
delta = A[x]-y
tot -= delta
A[x] = y
print(tot)