結果

問題 No.1338 Giant Class
ユーザー 小野寺健小野寺健
提出日時 2021-05-26 16:40:55
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 193 bytes
コンパイル時間 260 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 819,232 KB
最終ジャッジ日時 2024-04-23 12:48:31
合計ジャッジ時間 9,470 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,624 KB
testcase_01 AC 29 ms
10,624 KB
testcase_02 AC 605 ms
11,520 KB
testcase_03 AC 28 ms
10,624 KB
testcase_04 AC 27 ms
10,624 KB
testcase_05 AC 30 ms
10,624 KB
testcase_06 AC 574 ms
82,048 KB
testcase_07 AC 713 ms
83,200 KB
testcase_08 AC 455 ms
34,816 KB
testcase_09 AC 398 ms
18,944 KB
testcase_10 AC 725 ms
36,864 KB
testcase_11 AC 182 ms
71,808 KB
testcase_12 AC 485 ms
12,800 KB
testcase_13 RE -
testcase_14 MLE -
testcase_15 MLE -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

H, W, Q = map(int, input().split())

S = [H+1] * W

A = H * W

for _ in range(Q):
    Y, X = map(int, input().split())
    if S[X-1] > Y:
        A -= S[X-1] - Y
        S[X-1] = Y
    print(A)
0