結果
問題 |
No.934 Explosive energy drink
|
ユーザー |
![]() |
提出日時 | 2020-02-25 00:58:46 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 611 bytes |
コンパイル時間 | 1,952 ms |
コンパイル使用メモリ | 195,464 KB |
最終ジャッジ日時 | 2025-01-09 02:08:12 |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 22 TLE * 2 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { vector<int> ans; int n; cin >> n; for (int i = 0; i < n; i++) { cout << "?"; for (int j = 0; j < n; j++) { if (i == j) continue; cout << " " << j + 1; } cout << endl; int e; cin >> e; if (e == 0) ans.push_back(i + 1); } cout << "! " << ans.size() << endl; for (int i = 0; i < ans.size(); i++) { cout << ans.at(i); if (i == ans.size() - 1) { cout << endl; } else { cout << " "; } } }