QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#776924#9794. ICPC Shenyang in NEU, the Tenth Consecutive YearKevin5307AC ✓0ms3696kbC++23374b2024-11-23 21:41:462024-11-23 21:41:46

Judging History

This is a historical verdict posted at 2024-11-23 21:41:46.

  • [2024-11-23 21:48:40]
  • 管理员手动重测本题所有提交记录
  • Verdict: AC
  • Time: 10ms
  • Memory: 3688kb
  • [2024-11-23 21:41:46]
  • Judged
  • Verdict: 0
  • Time: 0ms
  • Memory: 3696kb
  • [2024-11-23 21:41:46]
  • Submitted

answer

#include<bits/stdc++.h>
using namespace std;
int main()
{
	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	int t;
	cin>>t;
	while(t--)
	{
		int ok=0;
		for(int i=1923;i<2023;i++)
		{
			cout<<"? "<<i<<endl;
			int x;
			cin>>x;
			if(x)
			{
				cout<<"! "<<i<<endl;
				ok=1;
				break;
			}
		}
		if(!ok)
			cout<<"! "<<2023<<endl;
	}
}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3696kb

input:

1

output:

? 1923
? 1924
? 1925
? 1926
? 1927
? 1928
? 1929
? 1930
? 1931
? 1932
? 1933
? 1934
? 1935
? 1936
? 1937
? 1938
? 1939
? 1940
? 1941
? 1942
? 1943
? 1944
? 1945
? 1946
? 1947
? 1948
? 1949
? 1950
? 1951
? 1952
? 1953
? 1954
? 1955
? 1956
? 1957
? 1958
? 1959
? 1960
? 1961
? 1962
? 1963
? 1964
? 1965...

result:

wrong output format Expected integer, but "?" found (test case 1)