結果
| 問題 |
No.3280 Black-Tailed Gull vs Monster
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-10-16 02:45:34 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 581 bytes |
| コンパイル時間 | 2,928 ms |
| コンパイル使用メモリ | 278,940 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2025-10-16 02:45:40 |
| 合計ジャッジ時間 | 5,780 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 35 RE * 5 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
int N,X,Q;
cin>>N>>X>>Q;
int cnt=0;
vector<int> C(N+1,0);
for(int i=0;i<Q;i++){
int M;
cin>>M;
vector<int> F(M);
bool D=0;
for(int j=0;j<M;j++){
cin>>F[j];
C[F[j]]++;
if(C[F[j]]==2)D=1;
}
if(C[X])cnt+=2;
else if(D)cnt++;
for(int j=0;j<M;j++){
C[F[j]]=0;
}
}
cout<<double(cnt)/2.0<<"\n";
}