結果
| 問題 | No.11 カードマッチ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-12-07 02:46:24 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 25 ms / 5,000 ms |
| + 463µs | |
| コード長 | 196 bytes |
| 記録 | |
| コンパイル時間 | 1,152 ms |
| コンパイル使用メモリ | 81,484 KB |
| 実行使用メモリ | 56,180 KB |
| 最終ジャッジ日時 | 2026-10-01 17:49:06 |
| 合計ジャッジ時間 | 3,433 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
w = int(input())
h = int(input())
n = int(input())
X = set()
Y = set()
for i in range(n):
x, y = input().split()
X.add(x)
Y.add(y)
print(h * len(X) + w * len(Y) - n - len(X) * len(Y))