結果
| 問題 | No.11 カードマッチ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-15 20:37:34 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 23 ms / 5,000 ms |
| コード長 | 186 bytes |
| 記録 | |
| コンパイル時間 | 471 ms |
| コンパイル使用メモリ | 85,080 KB |
| 実行使用メモリ | 54,036 KB |
| 最終ジャッジ日時 | 2026-03-08 23:56:54 |
| 合計ジャッジ時間 | 1,355 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
W = int(input()) H = int(input()) N = int(input()) SK = sorted([list(map(int, input().split())) for _ in range(N)]) S, K = zip(*SK) print(W * H - (W - len(set(S)))*(H - len(set(K))) - N)