結果
| 問題 | No.11 カードマッチ | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2022-05-07 09:48:39 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 27 ms / 5,000 ms | 
| コード長 | 218 bytes | 
| コンパイル時間 | 100 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-07-06 13:41:04 | 
| 合計ジャッジ時間 | 1,323 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 19 | 
ソースコード
w = int(input())
h = int(input())
n = int(input())
suit = set()
num = set()
for _ in range(n):
    s, n_ = map(int, input().split())
    suit.add(s)
    num.add(n_)
print(h * w - (w - len(suit)) * (h - len(num)) - n)
            
            
            
        