結果

問題 No.11 カードマッチ
ユーザー cielciel
提出日時 2014-11-16 21:35:46
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 307 bytes
コンパイル時間 111 ms
コンパイル使用メモリ 10,516 KB
実行使用メモリ 7,912 KB
最終ジャッジ日時 2023-08-30 07:22:56
合計ジャッジ時間 1,492 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#!/usr/bin/python
import sys
if sys.version_info[0]>=3: raw_input=input

w=int(raw_input())
h=int(raw_input())
n=int(raw_input())
a=[set() for i in range(2)]
for _ in range(n):
	for i,e in enumerate(map(int,raw_input().split())):
		a[i].add(e)
print(len(a[0])*w+len(a[1])*h-len(a[0])*len(a[1])-n)
0