結果
| 問題 | No.3280 Black-Tailed Gull vs Monster | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2025-09-26 22:05:24 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 616 ms / 2,000 ms | 
| コード長 | 252 bytes | 
| コンパイル時間 | 424 ms | 
| コンパイル使用メモリ | 12,024 KB | 
| 実行使用メモリ | 29,728 KB | 
| 最終ジャッジ日時 | 2025-09-26 22:05:34 | 
| 合計ジャッジ時間 | 9,182 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 40 | 
ソースコード
_,x,Q=map(int,input().split())
prob=0
from collections import Counter
for _ in range(Q):
    input()
    A=list(map(int,input().split()))
    if x in A:prob+=1
    else:
        c=Counter(A)
        if any(v>1 for v in c.values()):prob+=0.5
print(prob)
            
            
            
        