結果
問題 |
No.1338 Giant Class
|
ユーザー |
![]() |
提出日時 | 2021-04-22 00:31:54 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 216 bytes |
コンパイル時間 | 146 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 85,972 KB |
最終ジャッジ日時 | 2024-07-04 06:05:48 |
合計ジャッジ時間 | 6,366 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 WA * 8 |
ソースコード
from collections import defaultdict H,W,Q = map(int,input().split()) d = defaultdict(lambda: H) seat = H*W for _ in range(Q): y,x=map(int,input().split()) seat -= max(0,d[x]-y+1) d[x]=y-1 print(seat)