結果
| 問題 |
No.934 Explosive energy drink
|
| コンテスト | |
| ユーザー |
shop_one
|
| 提出日時 | 2019-11-29 22:52:16 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 770 bytes |
| コンパイル時間 | 1,093 ms |
| コンパイル使用メモリ | 75,780 KB |
| 実行使用メモリ | 25,604 KB |
| 平均クエリ数 | 1059.33 |
| 最終ジャッジ日時 | 2024-07-16 18:44:07 |
| 合計ジャッジ時間 | 6,182 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 WA * 9 |
ソースコード
// I SELL YOU...!
#include<iostream>
#include<vector>
#include<algorithm>
#include<functional>
#include<queue>
#include<set>
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
signed main(){
ll n,res;
cin >> n;
ll ri,le;
ri=1;
set<ll> mzs;
for(int i=n-1;i>1;i--){
set<ll> tmp(mzs);
for(int j=1;j<=i;j++){
tmp.insert(j);
}
cout << "? "<<tmp.size()<<"\n";
for(auto j:tmp){
cout << j<<" ";
}
cout << endl;
cin >> res;
if(res==0) mzs.insert(i+1);
cout << endl;
}
cout <<"? "<<mzs.size()<<"\n";
for(auto i:mzs){
cout << i<<" ";
}
cout << endl;
cin >> res;
if(res==0) mzs.insert(1);
cout << "! "<<mzs.size()<<"\n";
for(auto i:mzs){
cout << i<<" ";
}
cout << endl;
}
shop_one