結果
| 問題 |
No.934 Explosive energy drink
|
| コンテスト | |
| ユーザー |
auaua
|
| 提出日時 | 2019-11-29 22:14:27 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 340 ms / 2,000 ms |
| コード長 | 621 bytes |
| コンパイル時間 | 1,805 ms |
| コンパイル使用メモリ | 162,480 KB |
| 実行使用メモリ | 25,220 KB |
| 平均クエリ数 | 709.58 |
| 最終ジャッジ日時 | 2024-07-16 18:29:48 |
| 合計ジャッジ時間 | 6,747 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define REP(i,m,n) for(int i=(m);i<(n);i++)
#define rep(i,n) REP(i,0,n)
#define pb push_back
#define all(a) a.begin(),a.end()
typedef long long ll;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
const int inf=1e9+7;
int main(){
ll n;cin>>n;
vector<ll>ans(0);
ll a;
rep(i,n){
cout<<'?'<<' '<<n-1<<endl;
rep(j,n){
if(i!=j)cout<<j+1<<' ';
}
cin>>a;
if(!a)ans.pb(i+1);
cout<<endl;
}
cout<<'!'<<' '<<ans.size()<<endl;
rep(i,ans.size()){
cout<<ans[i]<<' ';
}
cout<<endl;
}
auaua