結果

問題 No.11 カードマッチ
ユーザー convexineqconvexineq
提出日時 2020-11-24 05:46:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 5,000 ms
コード長 199 bytes
コンパイル時間 271 ms
コンパイル使用メモリ 87,176 KB
実行使用メモリ 71,452 KB
最終ジャッジ日時 2023-10-01 00:47:14
合計ジャッジ時間 3,007 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,028 KB
testcase_01 AC 72 ms
71,264 KB
testcase_02 AC 70 ms
71,376 KB
testcase_03 AC 73 ms
71,360 KB
testcase_04 AC 72 ms
71,284 KB
testcase_05 AC 71 ms
71,388 KB
testcase_06 AC 73 ms
71,384 KB
testcase_07 AC 73 ms
71,228 KB
testcase_08 AC 73 ms
71,012 KB
testcase_09 AC 72 ms
71,452 KB
testcase_10 AC 74 ms
71,216 KB
testcase_11 AC 74 ms
71,132 KB
testcase_12 AC 74 ms
71,304 KB
testcase_13 AC 74 ms
71,292 KB
testcase_14 AC 74 ms
71,288 KB
testcase_15 AC 72 ms
71,264 KB
testcase_16 AC 74 ms
71,284 KB
testcase_17 AC 73 ms
71,252 KB
testcase_18 AC 75 ms
71,360 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

w = int(input())
h = int(input())
n = int(input())

s1 = set()
s2 = set()
for i in range(n):
    s,k = map(int,input().split())
    s1.add(s)
    s2.add(k)

a,b = len(s1),len(s2)
print(a*h+b*w-a*b-n)
0