結果

問題 No.1338 Giant Class
ユーザー 👑 H20H20
提出日時 2021-01-15 21:50:28
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 188 bytes
コンパイル時間 191 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 840,384 KB
最終ジャッジ日時 2024-05-04 23:26:40
合計ジャッジ時間 4,466 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,096 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 226 ms
145,836 KB
testcase_07 AC 283 ms
146,112 KB
testcase_08 AC 198 ms
98,452 KB
testcase_09 AC 191 ms
82,872 KB
testcase_10 AC 293 ms
99,116 KB
testcase_11 AC 111 ms
137,420 KB
testcase_12 AC 214 ms
76,892 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())
L = [H]*W
ans = H*W
for i in range(Q):
    Y,X = map(int, input().split())
    if L[X-1]>Y:
        ans -= L[X-1]-Y+1
        L[X-1] = Y-1
    print(ans)
0