結果
問題 | No.934 Explosive energy drink |
ユーザー | chocorusk |
提出日時 | 2019-11-29 21:52:20 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 899 bytes |
コンパイル時間 | 957 ms |
コンパイル使用メモリ | 110,860 KB |
実行使用メモリ | 24,312 KB |
平均クエリ数 | 709.50 |
最終ジャッジ日時 | 2023-09-23 18:23:12 |
合計ジャッジ時間 | 6,379 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 196 ms
23,304 KB |
testcase_02 | AC | 27 ms
23,556 KB |
testcase_03 | AC | 110 ms
23,520 KB |
testcase_04 | AC | 327 ms
23,616 KB |
testcase_05 | AC | 27 ms
23,292 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 25 ms
23,580 KB |
testcase_10 | AC | 26 ms
23,388 KB |
testcase_11 | AC | 26 ms
23,568 KB |
testcase_12 | AC | 27 ms
23,424 KB |
testcase_13 | AC | 30 ms
23,544 KB |
testcase_14 | AC | 32 ms
23,988 KB |
testcase_15 | AC | 108 ms
23,712 KB |
testcase_16 | AC | 38 ms
23,916 KB |
testcase_17 | AC | 52 ms
23,868 KB |
testcase_18 | AC | 55 ms
23,808 KB |
testcase_19 | AC | 86 ms
23,532 KB |
testcase_20 | AC | 142 ms
23,292 KB |
testcase_21 | AC | 144 ms
23,304 KB |
testcase_22 | AC | 199 ms
23,268 KB |
testcase_23 | AC | 196 ms
23,892 KB |
ソースコード
#include <cstdio> #include <cstring> #include <iostream> #include <string> #include <cmath> #include <bitset> #include <vector> #include <map> #include <set> #include <queue> #include <deque> #include <algorithm> #include <complex> #include <unordered_map> #include <unordered_set> #include <random> #include <cassert> #include <fstream> #include <utility> #include <functional> #include <time.h> #include <stack> #include <array> #define popcount __builtin_popcount using namespace std; typedef long long int ll; typedef pair<int, int> P; int main() { int n; cin>>n; vector<int> ans; for(int i=2; i<=n+1; i++){ int m=ans.size()+n-i+1; cout<<"? "<<m<<"\n"; for(auto x:ans) cout<<x<<" "; for(int j=i; j<=n; j++) cout<<j<<" "; cout<<endl; int r; cin>>r; if(r==0) ans.push_back(i-1); } cout<<"! "<<ans.size()<<"\n"; for(auto x:ans){ cout<<x<<" "; } cout<<endl; return 0; }