| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 344517 | koketsu | Xoractive (IZhO19_xoractive) | C++14 | 0 ms | 0 KiB | 
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#define pb push_back
#define LL long long
#define Kultivator ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
using namespace std;
const LL Mxn = 1e6 + 7;
const LL Mod = 1e9 + 7;
const LL Inf = 1e14 + 7;
int A[101];
void guess(int N){
    for(int i = 1; i <= N; i++){
        cout << "ask(" << i << ")" << '\n';
        fflush(stdout);
        int P;
        cin >> P;
        A[i] = P;
    }
    for(int i = 1; i <= N; i++){
        cout << A[i] << ' ';
    }
}
int main() {
    //Kultivator;
    int N;
    cin >> N;
    guess(N);
}
