結果
| 問題 |
No.934 Explosive energy drink
|
| コンテスト | |
| ユーザー |
Ogtsn99
|
| 提出日時 | 2019-11-29 22:24:08 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,110 bytes |
| コンパイル時間 | 1,709 ms |
| コンパイル使用メモリ | 170,328 KB |
| 実行使用メモリ | 25,836 KB |
| 平均クエリ数 | 355.79 |
| 最終ジャッジ日時 | 2024-07-16 18:36:48 |
| 合計ジャッジ時間 | 7,420 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 24 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define rrep(i,n) for(int (i)=((n)-1);(i)>=0;(i)--)
#define itn int
#define all(x) (x).begin(),(x).end()
#define F first
#define S second
const long long INF = 1LL << 60;
const int MOD = 1000000007;
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
signed main(void){
int n; cin>>n;
int cnt = n;
vector <int> a(n);
rep(i,n){
a[i] = i+1;
}
vector <int> tans;
rep(i,n){
cout<<"?"<<' '<<cnt-1<<endl;
rep(j,n){
if(j == i) continue;
else cout<<a[j]<<' ';
}
cout.flush();
int ans;
cin>>ans;
if(ans == 0){
tans.push_back(a[i]);
cnt--;
}
}
cout<<'!'<< ' '<< tans.size() <<endl;
rep(i,tans.size()){
cout<<tans[i]<<' ';
}
cout.flush();
return 0;
}
Ogtsn99