結果
問題 |
No.3280 Black-Tailed Gull vs Monster
|
ユーザー |
|
提出日時 | 2025-09-26 22:58:06 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 248 ms / 2,000 ms |
コード長 | 257 bytes |
コンパイル時間 | 492 ms |
コンパイル使用メモリ | 82,836 KB |
実行使用メモリ | 107,032 KB |
最終ジャッジ日時 | 2025-09-26 22:58:12 |
合計ジャッジ時間 | 6,341 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 40 |
ソースコード
from collections import* n,x,q=map(int,input().split()) ans=0 for _ in range(q): m=int(input()) f=[*map(int,input().split())] d=Counter() p=0 for i in f: if i==x: p=1 break d[i]+=1 if d[i]>1: p=0.5 ans+=p print(ans)