結果

問題 No.11 カードマッチ
ユーザー motor_radialmotor_radial
提出日時 2020-03-17 10:13:56
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 5,000 ms
コード長 179 bytes
コンパイル時間 347 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-30 05:07:06
合計ジャッジ時間 1,292 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

W=int(input())
H=int(input())
N=int(input())
sw=set()
kh=set()
for i in range(N):
    S,K=map(int,input().split())
    sw.add(S)
    kh.add(K)
print(W*H-(W-len(sw))*(H-len(kh))-N)
0