結果
| 問題 | No.3280 Black-Tailed Gull vs Monster | 
| コンテスト | |
| ユーザー |  回転 | 
| 提出日時 | 2025-09-26 21:40:47 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 233 ms / 2,000 ms | 
| コード長 | 244 bytes | 
| コンパイル時間 | 491 ms | 
| コンパイル使用メモリ | 82,080 KB | 
| 実行使用メモリ | 111,140 KB | 
| 最終ジャッジ日時 | 2025-09-26 21:41:21 | 
| 合計ジャッジ時間 | 6,007 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 40 | 
ソースコード
from collections import Counter
N,X,Q = list(map(int,input().split()))
ans = 0
for _ in range(Q):
    M = int(input())
    F = list(map(int,input().split()))
    if(X in F):ans += 1
    elif(max(Counter(F).values()) >= 2):ans += 0.5
print(ans)
            
            
            
        