General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
188303588 Practice:
DaiRuiChen007
1543D1 - 18 C++14 (GCC 6-32) Accepted 1762 ms 12 KB 2023-01-07 12:51:48 2023-01-07 12:51:48
→ Source
// LUOGU_RID: 98947712
#include<bits/stdc++.h>
using namespace std;
inline bool read(int n) {
	cout<<n<<endl;
	int ret; cin>>ret; return ret;
}
inline void solve() {
	int n,k;
	cin>>n>>k;
	for(int i=0,q=0;i<n;++i) {
		if(read(q^i)) return ;
		else q^=q^i;
	}
}
signed main() {
	int T;
	scanf("%d",&T);
	while(T--) solve();
	return 0;
}
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details