結果

問題 No.11 カードマッチ
ユーザー tabataba
提出日時 2016-04-13 04:03:50
言語 Python2
(2.7.18)
結果
MLE  
実行時間 -
コード長 267 bytes
コンパイル時間 543 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 815,200 KB
最終ジャッジ日時 2024-04-15 00:30:41
合計ジャッジ時間 5,882 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,816 KB
testcase_01 AC 11 ms
6,944 KB
testcase_02 AC 11 ms
6,944 KB
testcase_03 AC 11 ms
6,944 KB
testcase_04 MLE -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

w=input()
h=input()
n=input()
sk=[tuple(map(int,raw_input().split()))for _ in[0]*n]
r=set()
for c in sk:
	for d in[(c[0],i)for i in range(1,h+1)]:
		r.add(d)
	for d in[(i,c[1])for i in range(1,w+1)]:
		r.add(d)
#print r
for c in sk:
	r.remove(c)
#print r
print len(r)
0