結果

問題 No.11 カードマッチ
ユーザー Konton7Konton7
提出日時 2019-05-16 00:19:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 294 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 10,580 KB
実行使用メモリ 8,004 KB
最終ジャッジ日時 2023-10-12 19:37:25
合計ジャッジ時間 1,550 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,808 KB
testcase_01 AC 16 ms
7,724 KB
testcase_02 AC 17 ms
7,700 KB
testcase_03 WA -
testcase_04 AC 17 ms
7,860 KB
testcase_05 AC 17 ms
7,780 KB
testcase_06 WA -
testcase_07 AC 17 ms
7,848 KB
testcase_08 WA -
testcase_09 AC 17 ms
7,732 KB
testcase_10 AC 16 ms
7,784 KB
testcase_11 AC 16 ms
7,848 KB
testcase_12 AC 17 ms
7,840 KB
testcase_13 AC 16 ms
7,724 KB
testcase_14 AC 17 ms
7,840 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

wlist = []
hlist = []

for i in range(n):
    a, b = [ int(v) for v in input().split() ]
    if a not in wlist:
        wlist.append(a)
    if b not in hlist:
        hlist.append(b)


lw = len(wlist)
lh = len(hlist)

print(lw*h+lh*(w-lh)-n)
0