結果

問題 No.3280 Black-Tailed Gull vs Monster
ユーザー 👑 loop0919
提出日時 2025-09-26 21:27:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 257 ms / 2,000 ms
コード長 285 bytes
コンパイル時間 218 ms
コンパイル使用メモリ 82,288 KB
実行使用メモリ 114,576 KB
最終ジャッジ日時 2025-09-26 21:27:45
合計ジャッジ時間 5,759 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 40
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter

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

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

    if X in F:
        ans += 1
    elif max(F.values()) >= 2:
        ans += 1 / 2
    else:
        ans += 0

print(ans)
0