結果

問題 No.1338 Giant Class
ユーザー maninimanini
提出日時 2021-01-25 17:16:12
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 423 bytes
コンパイル時間 683 ms
コンパイル使用メモリ 87,176 KB
実行使用メモリ 849,836 KB
最終ジャッジ日時 2023-09-04 10:10:37
合計ジャッジ時間 7,871 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,484 KB
testcase_01 AC 77 ms
71,488 KB
testcase_02 AC 213 ms
89,204 KB
testcase_03 AC 78 ms
71,580 KB
testcase_04 AC 82 ms
71,384 KB
testcase_05 AC 87 ms
75,584 KB
testcase_06 AC 224 ms
153,828 KB
testcase_07 AC 252 ms
156,900 KB
testcase_08 AC 191 ms
106,516 KB
testcase_09 AC 180 ms
90,664 KB
testcase_10 AC 236 ms
111,140 KB
testcase_11 AC 139 ms
139,340 KB
testcase_12 AC 197 ms
86,212 KB
testcase_13 RE -
testcase_14 MLE -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding:UTF-8
import sys

MOD = 10 ** 9 + 7
INF = float('inf')

H, W, Q = list(map(int, input().split()))     # スペース区切り連続数字
YX = [list(map(int, input().split())) for _ in range(Q)]     # スペース区切り連続数字(行列)

res = H * W
zan = [H] * W

for y, x in YX:
    t = y - 1
    if zan[x-1] > t:
        d = zan[x-1] - t
        zan[x-1] = t
        res -= d

    print("{}".format(res))
0