結果
| 問題 | No.934 Explosive energy drink |
| コンテスト | |
| ユーザー |
a01sa01to
|
| 提出日時 | 2025-12-19 00:31:49 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 589 bytes |
| 記録 | |
| コンパイル時間 | 3,050 ms |
| コンパイル使用メモリ | 281,312 KB |
| 実行使用メモリ | 25,972 KB |
| 平均クエリ数 | 709.50 |
| 最終ジャッジ日時 | 2025-12-19 00:31:58 |
| 合計ジャッジ時間 | 8,200 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 WA * 4 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using ull = unsigned long long;
inline int Query(const set<int>& st) {
cout << "? " << st.size() << '\n';
for (int x : st) cout << x + 1 << ' ';
cout << endl;
int x;
cin >> x;
return x;
}
int main() {
int n;
cin >> n;
set<int> st;
rep(i, n) st.insert(i);
rep(i, n) {
st.erase(i);
int x = Query(st);
if (x == 0) st.insert(i);
}
cout << "! " << st.size() << '\n';
for (int x : st) cout << x + 1 << ' ';
cout << endl;
return 0;
}
a01sa01to