結果
| 問題 | No.1338 Giant Class |
| コンテスト | |
| ユーザー |
t
|
| 提出日時 | 2021-02-10 20:01:10 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 488 ms / 2,000 ms |
| コード長 | 277 bytes |
| 記録 | |
| コンパイル時間 | 478 ms |
| コンパイル使用メモリ | 20,952 KB |
| 実行使用メモリ | 27,812 KB |
| 最終ジャッジ日時 | 2026-03-30 00:22:23 |
| 合計ジャッジ時間 | 8,866 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 21 |
ソースコード
H, W, Q = map(int, input().split())
temp = {}
ans = H*W
for i in range(Q):
y, x = map(int, input().split())
if x not in temp:
temp[x] = y
ans -= H-y+1
else:
if temp[x] > y:
ans -= temp[x]-y
temp[x] = y
print(ans)
t