結果

問題 No.1338 Giant Class
ユーザー 👑 rin204rin204
提出日時 2022-01-18 18:46:30
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 222 bytes
コンパイル時間 492 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 840,192 KB
最終ジャッジ日時 2024-05-02 19:28:05
合計ジャッジ時間 7,067 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
51,840 KB
testcase_01 AC 36 ms
51,712 KB
testcase_02 AC 271 ms
77,184 KB
testcase_03 AC 39 ms
52,608 KB
testcase_04 AC 41 ms
52,864 KB
testcase_05 AC 49 ms
59,008 KB
testcase_06 AC 275 ms
145,792 KB
testcase_07 AC 341 ms
145,792 KB
testcase_08 AC 234 ms
98,432 KB
testcase_09 AC 208 ms
82,816 KB
testcase_10 AC 342 ms
99,200 KB
testcase_11 AC 152 ms
137,216 KB
testcase_12 AC 243 ms
76,800 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())

min_ = [h + 1] * w
ans = h * w
for _ in range(q):
    y, x = map(int, input().split())
    x -= 1
    if y < min_[x]:
        ans -= min_[x] - y
        min_[x] = y
    print(ans)
    
0