結果
| 問題 | No.11 カードマッチ |
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 20:17:47 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 64 ms / 5,000 ms |
| コード長 | 283 bytes |
| 記録 | |
| コンパイル時間 | 234 ms |
| コンパイル使用メモリ | 96,372 KB |
| 実行使用メモリ | 78,848 KB |
| 最終ジャッジ日時 | 2026-07-07 08:39:49 |
| 合計ジャッジ時間 | 2,773 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
w = int(input())
h = int(input())
n = int(input())
suits = set()
numbers = set()
for _ in range(n):
s, k = map(int, input().split())
suits.add(s)
numbers.add(k)
s_count = len(suits)
k_count = len(numbers)
a = s_count * h + k_count * w - s_count * k_count
print(a - n)
lam6er