結果

問題 No.11 カードマッチ
ユーザー cielciel
提出日時 2014-11-16 21:35:42
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 307 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 6,524 KB
実行使用メモリ 6,160 KB
最終ジャッジ日時 2023-08-30 07:22:25
合計ジャッジ時間 1,590 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,988 KB
testcase_01 AC 11 ms
5,996 KB
testcase_02 AC 11 ms
5,928 KB
testcase_03 WA -
testcase_04 AC 11 ms
5,940 KB
testcase_05 AC 11 ms
5,996 KB
testcase_06 WA -
testcase_07 AC 11 ms
5,940 KB
testcase_08 WA -
testcase_09 AC 11 ms
5,972 KB
testcase_10 AC 11 ms
5,864 KB
testcase_11 AC 11 ms
5,900 KB
testcase_12 AC 11 ms
5,852 KB
testcase_13 AC 11 ms
5,900 KB
testcase_14 AC 12 ms
6,112 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