結果
問題 | No.1338 Giant Class |
ユーザー | Theta |
提出日時 | 2022-10-14 17:38:21 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
MLE
|
実行時間 | - |
コード長 | 478 bytes |
コンパイル時間 | 465 ms |
コンパイル使用メモリ | 10,688 KB |
実行使用メモリ | 816,328 KB |
最終ジャッジ日時 | 2023-09-08 19:46:18 |
合計ジャッジ時間 | 12,933 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 15 ms
7,728 KB |
testcase_01 | AC | 15 ms
7,776 KB |
testcase_02 | AC | 518 ms
12,128 KB |
testcase_03 | AC | 15 ms
7,716 KB |
testcase_04 | AC | 15 ms
7,816 KB |
testcase_05 | AC | 17 ms
7,692 KB |
testcase_06 | AC | 1,181 ms
356,424 KB |
testcase_07 | AC | 1,283 ms
358,216 KB |
testcase_08 | AC | 596 ms
119,912 KB |
testcase_09 | AC | 405 ms
41,112 KB |
testcase_10 | AC | 861 ms
123,120 KB |
testcase_11 | AC | 682 ms
313,376 KB |
testcase_12 | AC | 417 ms
11,568 KB |
testcase_13 | MLE | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
ソースコード
def main(): H, W, Q = map(int, input().split()) rest_sheets = H * W most_front_other_students = [H + 1 for _ in range(W)] for _ in range(Q): y, x = map(int, input().split()) if most_front_other_students[x - 1] < y: print(rest_sheets) else: rest_sheets -= (most_front_other_students[x - 1] - y) most_front_other_students[x - 1] = y print(rest_sheets) if __name__ == "__main__": main()