結果
問題 |
No.3280 Black-Tailed Gull vs Monster
|
ユーザー |
![]() |
提出日時 | 2025-09-26 21:42:02 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 221 ms / 2,000 ms |
コード長 | 301 bytes |
コンパイル時間 | 523 ms |
コンパイル使用メモリ | 82,644 KB |
実行使用メモリ | 125,780 KB |
最終ジャッジ日時 | 2025-09-26 21:42:08 |
合計ジャッジ時間 | 6,064 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 40 |
ソースコード
N,X,Q = map(int,input().split()) ans = 0 for i in range(Q): M = int(input()) F = list(map(int,input().split())) p = 0 flag = False st = set() for j in range(M): if(F[j] == X): p = 1 if(F[j] in st): flag = True st.add(F[j]) if(p == 0 and flag == True): p = 0.5 ans += p print(ans)