結果
| 問題 | No.11 カードマッチ | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2021-11-06 15:27:59 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 44 ms / 5,000 ms | 
| コード長 | 225 bytes | 
| コンパイル時間 | 353 ms | 
| コンパイル使用メモリ | 82,304 KB | 
| 実行使用メモリ | 52,608 KB | 
| 最終ジャッジ日時 | 2024-11-07 12:40:18 | 
| 合計ジャッジ時間 | 2,115 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 19 | 
ソースコード
W = int(input()) H = int(input()) N = int(input()) SK = [list(map(int, input().split())) for _ in range(N)] num_s = len(set([x for x,_ in SK])) num_k = len(set([x for _,x in SK])) print(num_s * H + (W - num_s) * num_k - N)
