結果

問題 No.3280 Black-Tailed Gull vs Monster
ユーザー titia
提出日時 2025-09-28 03:58:13
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 325 ms / 2,000 ms
コード長 337 bytes
コンパイル時間 2,091 ms
コンパイル使用メモリ 12,160 KB
実行使用メモリ 32,356 KB
最終ジャッジ日時 2025-09-28 03:58:29
合計ジャッジ時間 9,121 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 40
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

from collections import Counter

N,X,Q=map(int,input().split())

ANS=0

for tests in range(Q):
    M=int(input())
    L=Counter(map(int,input().split()))

    if X in L:
        ANS+=1
    else:
        for c in L:
            if L[c]>=2:
                ANS+=0.5
                break

print(ANS)
0