結果
| 問題 | No.1338 Giant Class |
| コンテスト | |
| ユーザー |
aqua_tenhou
|
| 提出日時 | 2021-01-15 21:38:11 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 211 bytes |
| 記録 | |
| コンパイル時間 | 961 ms |
| コンパイル使用メモリ | 20,956 KB |
| 実行使用メモリ | 1,310,184 KB |
| 最終ジャッジ日時 | 2026-05-21 00:41:11 |
| 合計ジャッジ時間 | 8,291 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 RE * 1 MLE * 3 -- * 6 |
ソースコード
h,w,q = map(int,input().split())
lis = [h+1]*(w+1)
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