結果
| 問題 | No.11 カードマッチ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-11-06 15:27:59 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 5,000 ms |
| コード長 | 225 bytes |
| 記録 | |
| コンパイル時間 | 135 ms |
| コンパイル使用メモリ | 85,576 KB |
| 実行使用メモリ | 52,608 KB |
| 最終ジャッジ日時 | 2026-05-07 21:05:05 |
| 合計ジャッジ時間 | 1,717 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)