結果

問題 No.1338 Giant Class
ユーザー 👑 H20H20
提出日時 2021-04-22 00:31:54
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 216 bytes
コンパイル時間 264 ms
コンパイル使用メモリ 87,264 KB
実行使用メモリ 87,524 KB
最終ジャッジ日時 2023-09-17 09:43:27
合計ジャッジ時間 7,747 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 96 ms
71,632 KB
testcase_01 AC 96 ms
71,628 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 299 ms
84,352 KB
testcase_07 AC 374 ms
86,640 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 158 ms
78,504 KB
testcase_12 WA -
testcase_13 AC 284 ms
83,532 KB
testcase_14 AC 173 ms
79,168 KB
testcase_15 AC 194 ms
80,684 KB
testcase_16 AC 153 ms
77,564 KB
testcase_17 AC 289 ms
84,316 KB
testcase_18 AC 174 ms
79,244 KB
testcase_19 AC 204 ms
81,004 KB
testcase_20 AC 395 ms
87,524 KB
testcase_21 AC 397 ms
87,452 KB
testcase_22 AC 397 ms
87,128 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict
H,W,Q = map(int,input().split())
d = defaultdict(lambda: H)
seat = H*W
for _ in range(Q):
    y,x=map(int,input().split())
    seat -= max(0,d[x]-y+1)
    d[x]=y-1
    print(seat)
0