結果

問題 No.1338 Giant Class
ユーザー 👑 timitimi
提出日時 2021-01-26 13:54:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 153 bytes
コンパイル時間 161 ms
コンパイル使用メモリ 10,556 KB
実行使用メモリ 816,628 KB
最終ジャッジ日時 2023-09-05 18:05:28
合計ジャッジ時間 10,047 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,892 KB
testcase_01 AC 15 ms
7,880 KB
testcase_02 AC 597 ms
8,800 KB
testcase_03 AC 16 ms
7,816 KB
testcase_04 AC 17 ms
7,900 KB
testcase_05 AC 19 ms
7,828 KB
testcase_06 AC 530 ms
79,444 KB
testcase_07 AC 704 ms
80,480 KB
testcase_08 AC 428 ms
32,052 KB
testcase_09 AC 376 ms
16,264 KB
testcase_10 AC 689 ms
34,012 KB
testcase_11 AC 156 ms
69,144 KB
testcase_12 AC 471 ms
10,148 KB
testcase_13 RE -
testcase_14 MLE -
testcase_15 MLE -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

H,W,Q=map(int, input().split())
D=[H+1]*W
d=H*W
for i in range(Q):
  y,x=map(int, input().split())
  if D[x-1]>y:
    d-=D[x-1]-y
    D[x-1]=y
  print(d)
0