結果
| 問題 | No.11 カードマッチ | 
| コンテスト | |
| ユーザー |  nohakai3 | 
| 提出日時 | 2022-10-19 14:45:47 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 35 ms / 5,000 ms | 
| コード長 | 204 bytes | 
| コンパイル時間 | 174 ms | 
| コンパイル使用メモリ | 82,192 KB | 
| 実行使用メモリ | 53,848 KB | 
| 最終ジャッジ日時 | 2024-06-29 17:34:50 | 
| 合計ジャッジ時間 | 1,647 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 19 | 
ソースコード
w=int(input())
h=int(input())
n=int(input())
a,b=[],[]
for i in range(n):
    x,y=map(int,input().split())
    a.append(x)
    b.append(y)
a=list(set(a))
b=list(set(b))
print(w*h-(w-len(a))*(h-len(b))-n)
            
            
            
        