結果
| 問題 | No.3280 Black-Tailed Gull vs Monster |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-09-26 21:35:17 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 82 ms / 2,000 ms |
| + 604µs | |
| コード長 | 430 bytes |
| 記録 | |
| コンパイル時間 | 1,189 ms |
| コンパイル使用メモリ | 215,184 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2026-07-15 05:48:55 |
| 合計ジャッジ時間 | 4,263 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 40 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main () {
int n, x, q;
cin >> n >> x >> q;
double ans = 0;
set<int> s;
while (q--) {
int m;
cin >> m;
bool ex = false, d = false;
s.clear();
while (m--) {
int a;
cin >> a;
ex = ex || (a == x);
d = d || (s.find(a) != s.end());
s.insert(a);
}
if (ex) {
ans += 1;
}else if (d) {
ans += 0.5;
}
}
cout << setprecision(20) << ans << endl;
}