Submission #44938

# Submission time Handle Problem Language Result Execution time Memory
44938 2018-04-09T18:01:32 Z mahmoudbadawy Go, Gopher! (GCJ18Q_gogopher) C++17
0 / 30
13 ms 308 KB
#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

gogopher.cpp: In function 'int main()':
gogopher.cpp:19:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    scanf("%d %d",&a,&b);
    ~~~~~^~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Incorrect 13 ms 248 KB failed to make a rectangle in 1000 deployments
# Verdict Execution time Memory Grader output
1 Incorrect 8 ms 308 KB failed to make a rectangle in 1000 deployments