結果

問題 No.934 Explosive energy drink
ユーザー yukarinokiyukarinoki
提出日時 2020-02-15 23:29:51
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 338 ms / 2,000 ms
コード長 411 bytes
コンパイル時間 546 ms
コンパイル使用メモリ 69,400 KB
実行使用メモリ 24,312 KB
平均クエリ数 709.58
最終ジャッジ日時 2023-09-23 19:41:41
合計ジャッジ時間 5,339 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
23,412 KB
testcase_01 AC 335 ms
23,640 KB
testcase_02 AC 27 ms
23,628 KB
testcase_03 AC 173 ms
23,604 KB
testcase_04 AC 337 ms
23,400 KB
testcase_05 AC 28 ms
24,312 KB
testcase_06 AC 27 ms
23,628 KB
testcase_07 AC 26 ms
23,376 KB
testcase_08 AC 26 ms
23,988 KB
testcase_09 AC 27 ms
24,300 KB
testcase_10 AC 26 ms
24,000 KB
testcase_11 AC 27 ms
23,376 KB
testcase_12 AC 28 ms
23,628 KB
testcase_13 AC 31 ms
24,024 KB
testcase_14 AC 32 ms
23,820 KB
testcase_15 AC 112 ms
24,036 KB
testcase_16 AC 45 ms
23,628 KB
testcase_17 AC 66 ms
23,604 KB
testcase_18 AC 69 ms
23,820 KB
testcase_19 AC 131 ms
23,364 KB
testcase_20 AC 218 ms
24,024 KB
testcase_21 AC 233 ms
24,228 KB
testcase_22 AC 333 ms
23,424 KB
testcase_23 AC 338 ms
23,520 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>
using namespace std;

int main(){
    int n; cin >> n;
  	vector<int> v;
  	for(int i=1;i<=n;i++){
      	cout <<"? " <<n-1 << endl;
    	for(int j=1;j<=n;j++) if(j!=i) cout << j << " ";
      	cout << endl;
      	int ans; cin >> ans;
    	if(ans!=1) v.push_back(i);
    }
  	cout << "! " << v.size() << endl;
  	for(auto x:v) cout << x << " ";
  cout << endl;
  return 0;
}
0