結果
| 問題 | No.11 カードマッチ |
| コンテスト | |
| ユーザー |
👑 Kazun
|
| 提出日時 | 2020-10-03 03:25:09 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 324 bytes |
| 記録 | |
| コンパイル時間 | 562 ms |
| コンパイル使用メモリ | 96,368 KB |
| 実行使用メモリ | 79,232 KB |
| 最終ジャッジ日時 | 2026-08-16 10:05:59 |
| 合計ジャッジ時間 | 2,519 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 18 WA * 1 |
ソースコード
W=int(input())
H=int(input())
N=int(input())
A=set() #マーク
B=set() #数字
X=0
for _ in range(N):
S,K=map(int,input().split())
if S not in A:
A.add(S)
X+=(H-len(B)-(K not in B))
else:
X-=1
if K not in B:
B.add(K)
X+=(W-len(A))
else:
X-=1
print(X)
Kazun