結果
問題 | No.1338 Giant Class |
ユーザー |
![]() |
提出日時 | 2021-04-22 00:38:49 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 360 ms / 2,000 ms |
コード長 | 233 bytes |
コンパイル時間 | 343 ms |
コンパイル使用メモリ | 82,396 KB |
実行使用メモリ | 85,792 KB |
最終ジャッジ日時 | 2024-07-04 06:06:10 |
合計ジャッジ時間 | 6,404 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 21 |
ソースコード
from collections import defaultdictH,W,Q = map(int,input().split())d = defaultdict(lambda: H)seat = H*Wfor _ in range(Q):y,x=map(int,input().split())if d[x]>=y:seat -= d[x]-y+1d[x]=y-1print(seat)