結果

問題 No.11 カードマッチ
ユーザー square1001square1001
提出日時 2022-02-17 11:39:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 235 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 10,516 KB
実行使用メモリ 7,972 KB
最終ジャッジ日時 2023-09-11 17:31:27
合計ジャッジ時間 1,425 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

# Input
W = int(input())
H = int(input())
N = int(input())
S = [ None ] * N
K = [ None ] * N
for i in range(N):
	S[i], K[i] = map(int, input().split())

# Calculation
A = len(set(S))
B = len(set(K))
print(H * W - (H - A) * (W - B) - N)
0