結果
| 問題 | No.1338 Giant Class |
| コンテスト | |
| ユーザー |
aqua_tenhou
|
| 提出日時 | 2021-01-15 21:39:55 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 216 bytes |
| 記録 | |
| コンパイル時間 | 459 ms |
| コンパイル使用メモリ | 14,848 KB |
| 実行使用メモリ | 14,080 KB |
| 最終ジャッジ日時 | 2026-09-30 09:38:13 |
| 合計ジャッジ時間 | 4,657 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 RE * 16 |
ソースコード
h,w,q = map(int,input().split())
lis = [h+1]*(10**5+10)
ans = h*w
for i in range(q):
y,x = map(int,input().split())
if y < lis[x]:
ans -= lis[x] - y
lis[x] = y
print(ans)
aqua_tenhou