結果
| 問題 |
No.11 カードマッチ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-01-20 21:21:24 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 43 ms / 5,000 ms |
| コード長 | 218 bytes |
| コンパイル時間 | 180 ms |
| コンパイル使用メモリ | 82,560 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2024-11-24 06:05:31 |
| 合計ジャッジ時間 | 1,779 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
w = int(input())
h = int(input())
n = int(input())
W = set()
H = set()
ans = 0
for _ in range(n):
s, k = map(int, input().split())
W.add(s)
H.add(k)
ans = h * w - (h - len(H)) * (w - len(W)) - n
print(ans)