結果
| 問題 |
No.1338 Giant Class
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-19 20:08:54 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 227 bytes |
| コンパイル時間 | 225 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 821,040 KB |
| 最終ジャッジ日時 | 2024-09-19 00:26:25 |
| 合計ジャッジ時間 | 5,945 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 4 MLE * 1 -- * 16 |
ソースコード
h, w, q = map(int, input().split())
a = {}
for i in range(1, w + 1):
a[i] = h + 1
ans = h * w
for _ in range(q):
y, x = map(int, input().split())
if a[x] > y:
ans -= a[x] - y
a[x] = y
print(ans)