結果
問題 | No.1338 Giant Class |
ユーザー | kept1994 |
提出日時 | 2021-08-29 02:08:42 |
言語 | Python3 (3.11.6 + numpy 1.26.0 + scipy 1.11.3) |
結果 |
RE
|
実行時間 | - |
コード長 | 379 bytes |
コンパイル時間 | 334 ms |
コンパイル使用メモリ | 10,744 KB |
実行使用メモリ | 816,976 KB |
最終ジャッジ日時 | 2023-08-14 06:42:38 |
合計ジャッジ時間 | 7,196 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
7,912 KB |
testcase_01 | AC | 16 ms
7,788 KB |
testcase_02 | AC | 602 ms
8,572 KB |
testcase_03 | AC | 16 ms
7,912 KB |
testcase_04 | AC | 17 ms
7,872 KB |
testcase_05 | AC | 19 ms
7,864 KB |
testcase_06 | AC | 448 ms
79,432 KB |
testcase_07 | AC | 614 ms
80,416 KB |
testcase_08 | AC | 389 ms
32,112 KB |
testcase_09 | AC | 362 ms
16,376 KB |
testcase_10 | AC | 648 ms
33,860 KB |
testcase_11 | AC | 109 ms
68,996 KB |
testcase_12 | AC | 458 ms
10,356 KB |
testcase_13 | RE | - |
testcase_14 | MLE | - |
testcase_15 | MLE | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
ソースコード
#!/usr/bin/env python3 import sys def main(): H, W, Q = map(int, input().split()) ok = [H] * W all = H * W for _ in range(Q): y, x = map(lambda i: int(i) - 1, input().split()) if ok[x] <= y: print(all) continue all -= ok[x] - y ok[x] = y print(all) return if __name__ == '__main__': main()