#include <bits/stdc++.h>
#include <interactive.h>
using namespace std;
vector<int> guess(int n) {
vector<int> ans(n);
for (int i = 1; i <= n; ++i) {
ans[i - 1] = ask(i);
}
return ans;
}
/*
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int T = 1;
// cin >> T;
while (T--) {
int n;
cin >> n;
vector<int> ans = guess(n);
for (const int& x : ans) {
cout << x << ' ';
}
cout << '\n';
}
return 0;
}
*/
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
292 KB |
Output is correct |
2 |
Correct |
0 ms |
208 KB |
Output is correct |
3 |
Correct |
0 ms |
208 KB |
Output is correct |
4 |
Correct |
0 ms |
208 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
208 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |