結果
問題 | No.1338 Giant Class |
ユーザー |
|
提出日時 | 2021-07-09 12:01:20 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 795 ms / 2,000 ms |
コード長 | 269 bytes |
コンパイル時間 | 83 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 24,188 KB |
最終ジャッジ日時 | 2024-07-01 13:56:53 |
合計ジャッジ時間 | 11,129 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 21 |
ソースコード
from collections import defaultdicth,w,q=map(int,input().split())d=defaultdict(lambda: h+1)cnt=h*wfor i in range(q):y,x=map(int,input().split())if y<=d[x]:cnt-=d[x]-yd[x]=yprint(cnt)else:print(cnt)