結果
問題 | No.1338 Giant Class |
ユーザー |
![]() |
提出日時 | 2021-01-22 10:13:11 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 981 ms / 2,000 ms |
コード長 | 280 bytes |
コンパイル時間 | 93 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 23,988 KB |
最終ジャッジ日時 | 2024-12-26 04:51:03 |
合計ジャッジ時間 | 13,307 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 21 |
ソースコード
#yuki-1338from collections import defaultdict as ddtH, W, Q = map(int, input().split())ans = H*Wforemost = ddt(int)for _ in range(Q):Y, X = map(int, input().split())f = foremost[X]if H-Y+1 > f:foremost[X] = H-Y+1ans -= H-Y+1-fprint(ans)