結果

問題 No.1338 Giant Class
ユーザー Pretender324Pretender324
提出日時 2021-01-15 22:02:12
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 208 bytes
コンパイル時間 1,982 ms
コンパイル使用メモリ 86,384 KB
実行使用メモリ 833,520 KB
最終ジャッジ日時 2023-08-17 17:07:41
合計ジャッジ時間 5,651 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
70,888 KB
testcase_01 AC 76 ms
71,224 KB
testcase_02 AC 340 ms
78,944 KB
testcase_03 AC 79 ms
70,964 KB
testcase_04 AC 80 ms
70,848 KB
testcase_05 AC 88 ms
75,148 KB
testcase_06 AC 288 ms
147,660 KB
testcase_07 AC 353 ms
148,016 KB
testcase_08 AC 264 ms
100,548 KB
testcase_09 AC 252 ms
84,772 KB
testcase_10 AC 358 ms
101,220 KB
testcase_11 AC 159 ms
139,012 KB
testcase_12 AC 284 ms
79,296 KB
testcase_13 RE -
testcase_14 MLE -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

H, W, Q = map(int, input().split())
A = [H] * W
ans = H * W
for _ in range(Q):
    Y, X = map(int, input().split())
    ans -= A[X-1] - min(A[X - 1], Y - 1)
    A[X - 1] = min(A[X - 1], Y - 1)
    print(ans)
0