結果

問題 No.3280 Black-Tailed Gull vs Monster
コンテスト
ユーザー cologne
提出日時 2025-11-14 22:48:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 115 ms / 2,000 ms
コード長 363 bytes
コンパイル時間 210 ms
コンパイル使用メモリ 82,240 KB
実行使用メモリ 125,164 KB
最終ジャッジ日時 2025-11-14 22:48:52
合計ジャッジ時間 4,342 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 40
権限があれば一括ダウンロードができます

ソースコード

diff #

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