結果
| 問題 | No.3280 Black-Tailed Gull vs Monster |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-09-26 21:29:14 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 199 ms / 2,000 ms |
| + 61µs | |
| コード長 | 322 bytes |
| 記録 | |
| コンパイル時間 | 235 ms |
| コンパイル使用メモリ | 96,232 KB |
| 実行使用メモリ | 130,016 KB |
| 最終ジャッジ日時 | 2026-07-15 05:45:48 |
| 合計ジャッジ時間 | 7,119 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 40 |
ソースコード
from collections import defaultdict
N,X,Q=map(int,input().split())
ans=0
for _ in range(Q):
M=int(input())
F=list(map(int,input().split()))
cnt=defaultdict(int)
multi=0
for f in F:
cnt[f]+=1
if cnt[f]>=2:multi=1
if X in F:
ans+=1
elif multi:
ans+=0.5
print(ans)