結果
| 問題 | No.1338 Giant Class |
| コンテスト | |
| ユーザー |
👑 terry_u16
|
| 提出日時 | 2021-01-15 21:39:57 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 363 ms / 2,000 ms |
| コード長 | 300 bytes |
| 記録 | |
| コンパイル時間 | 387 ms |
| コンパイル使用メモリ | 82,232 KB |
| 実行使用メモリ | 86,312 KB |
| 最終ジャッジ日時 | 2024-11-26 13:40:11 |
| 合計ジャッジ時間 | 6,255 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 21 |
ソースコード
height, width, queries = map(int, input().split())
fronts = { }
available = height * width
for i in range(queries):
row, col = map(int, input().split())
last = fronts.get(col, height + 1)
if row < last:
available -= last - row
fronts[col] = row
print(available)
terry_u16