結果
問題 | No.11 カードマッチ |
ユーザー |
|
提出日時 | 2021-06-19 17:37:50 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 39 ms / 5,000 ms |
コード長 | 253 bytes |
コンパイル時間 | 196 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 52,480 KB |
最終ジャッジ日時 | 2024-06-22 22:12:17 |
合計ジャッジ時間 | 1,520 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
inpl = lambda: list(map(int,input().split())) W = int(input()) H = int(input()) N = int(input()) hset = set() wset = set() for _ in range(N): w, h = inpl() wset.add(w) hset.add(h) Lh = len(hset) Lw = len(wset) print(Lh*W + H*Lw - Lh*Lw - N)