結果

問題 No.1338 Giant Class
ユーザー c-yanc-yan
提出日時 2021-01-15 21:39:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 249 bytes
コンパイル時間 125 ms
コンパイル使用メモリ 10,624 KB
実行使用メモリ 816,988 KB
最終ジャッジ日時 2023-08-17 16:26:04
合計ジャッジ時間 7,866 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,796 KB
testcase_01 AC 16 ms
7,852 KB
testcase_02 AC 399 ms
15,272 KB
testcase_03 AC 16 ms
7,844 KB
testcase_04 AC 17 ms
7,800 KB
testcase_05 AC 18 ms
7,812 KB
testcase_06 AC 439 ms
83,528 KB
testcase_07 AC 545 ms
86,392 KB
testcase_08 AC 317 ms
35,868 KB
testcase_09 AC 255 ms
19,880 KB
testcase_10 AC 485 ms
40,456 KB
testcase_11 AC 189 ms
69,908 KB
testcase_12 AC 313 ms
15,008 KB
testcase_13 RE -
testcase_14 TLE -
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())

t = [H] * W
c = sum(t)
result = []
for _ in range(Q):
    Y, X = map(int, input().split())
    p = t[X - 1]
    t[X - 1] = min(t[X - 1], Y - 1)
    c -= p - t[X - 1]
    result.append(c)
print(*result, sep='\n')
0