結果
問題 | No.11 カードマッチ |
ユーザー | convexineq |
提出日時 | 2020-11-24 05:46:04 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 45 ms / 5,000 ms |
コード長 | 199 bytes |
コンパイル時間 | 351 ms |
コンパイル使用メモリ | 82,064 KB |
実行使用メモリ | 52,608 KB |
最終ジャッジ日時 | 2024-07-23 18:23:18 |
合計ジャッジ時間 | 1,904 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
w = int(input())h = int(input())n = int(input())s1 = set()s2 = set()for i in range(n):s,k = map(int,input().split())s1.add(s)s2.add(k)a,b = len(s1),len(s2)print(a*h+b*w-a*b-n)