結果
| 問題 | No.1338 Giant Class |
| コンテスト | |
| ユーザー |
timi
|
| 提出日時 | 2021-01-26 13:54:48 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 153 bytes |
| 記録 | |
| コンパイル時間 | 966 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 1,485,880 KB |
| 最終ジャッジ日時 | 2026-03-08 09:11:45 |
| 合計ジャッジ時間 | 9,043 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 RE * 1 MLE * 3 -- * 6 |
ソースコード
H,W,Q=map(int, input().split())
D=[H+1]*W
d=H*W
for i in range(Q):
y,x=map(int, input().split())
if D[x-1]>y:
d-=D[x-1]-y
D[x-1]=y
print(d)
timi