結果
問題 | No.1338 Giant Class |
ユーザー | yakeshiba |
提出日時 | 2021-06-06 22:33:39 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 232 bytes |
コンパイル時間 | 421 ms |
コンパイル使用メモリ | 87,320 KB |
実行使用メモリ | 844,196 KB |
最終ジャッジ日時 | 2023-08-15 12:07:57 |
合計ジャッジ時間 | 7,758 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 71 ms
71,500 KB |
testcase_01 | AC | 69 ms
71,424 KB |
testcase_02 | AC | 316 ms
79,412 KB |
testcase_03 | AC | 73 ms
71,276 KB |
testcase_04 | AC | 75 ms
71,424 KB |
testcase_05 | AC | 80 ms
75,340 KB |
testcase_06 | AC | 274 ms
147,588 KB |
testcase_07 | AC | 346 ms
148,228 KB |
testcase_08 | AC | 248 ms
100,632 KB |
testcase_09 | AC | 236 ms
85,040 KB |
testcase_10 | AC | 346 ms
101,436 KB |
testcase_11 | AC | 148 ms
139,104 KB |
testcase_12 | AC | 268 ms
79,116 KB |
testcase_13 | RE | - |
testcase_14 | MLE | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
ソースコード
h, w, q = map(int,input().split()) occupied = [h]*w ans = h*w for _ in range(q): y, x = map(lambda x:int(x)-1,input().split()) if y < occupied[x]: ans -= abs(occupied[x]-y) occupied[x] = y print(ans)