제출 #338386

#제출 시각아이디문제언어결과실행 시간메모리
338386Edbert2397Xoractive (IZhO19_xoractive)C++14
6 / 100
1 ms384 KiB
#include "interactive.h" #include<bits/stdc++.h> #define pb push_back using namespace std; int x; vector<int> guess(int n) { vector <int> ans; for (int i = 1; i <= n; i++) { if(i&1){ x = ask(i); ans.pb(x); } else{ vector<int > in = get_pairwise_xor({i,i-1}); ans.pb(in[2] ^ (ans.back())); } } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...