結果

問題 No.1338 Giant Class
ユーザー _matumo__matumo_
提出日時 2021-01-23 00:28:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 696 ms / 2,000 ms
コード長 138 bytes
コンパイル時間 364 ms
コンパイル使用メモリ 10,448 KB
実行使用メモリ 21,488 KB
最終ジャッジ日時 2023-08-28 10:00:29
合計ジャッジ時間 11,101 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,824 KB
testcase_01 AC 15 ms
7,788 KB
testcase_02 AC 672 ms
7,780 KB
testcase_03 AC 15 ms
7,900 KB
testcase_04 AC 16 ms
7,816 KB
testcase_05 AC 17 ms
7,776 KB
testcase_06 AC 438 ms
14,832 KB
testcase_07 AC 619 ms
21,356 KB
testcase_08 AC 408 ms
14,740 KB
testcase_09 AC 378 ms
14,664 KB
testcase_10 AC 683 ms
21,328 KB
testcase_11 AC 78 ms
8,860 KB
testcase_12 AC 507 ms
14,732 KB
testcase_13 AC 397 ms
14,616 KB
testcase_14 AC 118 ms
9,652 KB
testcase_15 AC 169 ms
11,236 KB
testcase_16 AC 66 ms
8,868 KB
testcase_17 AC 408 ms
14,476 KB
testcase_18 AC 114 ms
9,772 KB
testcase_19 AC 197 ms
11,288 KB
testcase_20 AC 692 ms
21,452 KB
testcase_21 AC 686 ms
21,488 KB
testcase_22 AC 696 ms
21,308 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

f=lambda:map(int,input().split())
H,W,Q=f()
d={}
t=H*W
for i in range(Q):
	y,x=f()
	z=d.get(x,0)
	e=max(z,H-y+1)
	d[x]=e
	t-=e-z
	print(t)
0