結果

問題 No.11 カードマッチ
ユーザー mlihua09mlihua09
提出日時 2020-08-28 14:19:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 5,000 ms
コード長 240 bytes
コンパイル時間 528 ms
コンパイル使用メモリ 86,904 KB
実行使用メモリ 71,460 KB
最終ジャッジ日時 2023-08-08 18:08:01
合計ジャッジ時間 2,639 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
70,936 KB
testcase_01 AC 68 ms
71,136 KB
testcase_02 AC 68 ms
71,104 KB
testcase_03 AC 68 ms
71,136 KB
testcase_04 AC 67 ms
71,104 KB
testcase_05 AC 66 ms
71,268 KB
testcase_06 AC 67 ms
71,460 KB
testcase_07 AC 69 ms
71,328 KB
testcase_08 AC 70 ms
71,324 KB
testcase_09 AC 68 ms
71,064 KB
testcase_10 AC 69 ms
71,132 KB
testcase_11 AC 68 ms
71,200 KB
testcase_12 AC 68 ms
71,228 KB
testcase_13 AC 69 ms
71,056 KB
testcase_14 AC 67 ms
71,132 KB
testcase_15 AC 69 ms
71,264 KB
testcase_16 AC 70 ms
71,328 KB
testcase_17 AC 70 ms
71,236 KB
testcase_18 AC 70 ms
71,092 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


W = int(input())

H = int(input())

N = int(input())

S = []

K = []

for i in range(N):
    
    s, k = map(int, input().split())
    
    S += [s]
    
    K += [k]
    
s = len(set(S))

k = len(set(K))

print(s * H + k * W - s * k - N)
0