結果
問題 |
No.3280 Black-Tailed Gull vs Monster
|
ユーザー |
|
提出日時 | 2025-09-28 10:20:48 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 613 ms / 2,000 ms |
コード長 | 321 bytes |
コンパイル時間 | 397 ms |
コンパイル使用メモリ | 12,032 KB |
実行使用メモリ | 30,100 KB |
最終ジャッジ日時 | 2025-09-28 10:20:58 |
合計ジャッジ時間 | 9,508 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 40 |
ソースコード
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)