結果
| 問題 |
No.11 カードマッチ
|
| コンテスト | |
| ユーザー |
miztom
|
| 提出日時 | 2024-03-12 16:18:16 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 5,000 ms |
| コード長 | 174 bytes |
| コンパイル時間 | 303 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 52,992 KB |
| 最終ジャッジ日時 | 2024-09-29 22:21:47 |
| 合計ジャッジ時間 | 1,924 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
w=int(input())
h=int(input())
sw=set()
sh=set()
n=w*h
for i in range(int(input())):
s,k=map(int,input().split())
sw|={s};sh|={k};n-=1
print(n-(w-len(sw))*(h-len(sh)))
miztom