結果
問題 | No.11 カードマッチ |
ユーザー |
|
提出日時 | 2023-06-15 20:37:34 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 39 ms / 5,000 ms |
コード長 | 186 bytes |
コンパイル時間 | 355 ms |
コンパイル使用メモリ | 82,644 KB |
実行使用メモリ | 53,824 KB |
最終ジャッジ日時 | 2024-06-23 18:43:56 |
合計ジャッジ時間 | 2,237 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)