# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
44938 | mahmoudbadawy | Untitled (GCJ18Q_gogopher) | C++17 | 13 ms | 308 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>
using namespace std;
int main()
{
int t;
cin >> t;
while(t--)
{
int a;
cin >> a;
for(int i=0;i<1000;i++)
{
int x=i%25+2;
printf("2 %d\n",x);
fflush(stdout);
int a,b;
scanf("%d %d",&a,&b);
if(a==0) break;
if(a==-1) return 0;
}
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |