結果

問題 No.3280 Black-Tailed Gull vs Monster
コンテスト
ユーザー me
提出日時 2025-09-28 10:20:48
言語 Python3
(3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 469 ms / 2,000 ms
+ 53µs
コード長 321 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 51 ms
コンパイル使用メモリ 14,592 KB
実行使用メモリ 32,280 KB
最終ジャッジ日時 2026-10-17 22:41:15
合計ジャッジ時間 8,583 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 39
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

from collections import Counter

n, x, q = map(int, input().split())

ans = 0.0
for _ in range(q):
    m = int(input())
    f = list(map(int, input().split()))
    counter = Counter(f)

    if counter[x] >= 1:
        ans += 1.0
    elif any(v >= 2 and k != x for k, v in counter.items()):
        ans += 0.5

print(ans)
0