結果

問題 No.3280 Black-Tailed Gull vs Monster
コンテスト
ユーザー 👑 cologne
提出日時 2025-11-14 22:48:45
言語 PyPy3
(8.0.0 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 75 ms / 2,000 ms
+ 958µs
コード長 363 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 80 ms
コンパイル使用メモリ 64,780 KB
実行使用メモリ 92,516 KB
最終ジャッジ日時 2026-10-17 22:43:42
合計ジャッジ時間 5,209 ms
ジャッジサーバーID
(参考情報)
judge6_0 / judge5_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 39
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys


def input(): return sys.stdin.readline().rstrip()


def main():
    n, x, q = map(int, input().split())
    ans = 0
    for _ in range(q):
        input()
        *f, = map(int, input().split())
        if x in f:
            ans += 1
        elif len(f) != len(set(f)):
            ans += 0.5

    print(ans)


if __name__ == "__main__":
    main()
0