QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#791836#9794. ICPC Shenyang in NEU, the Tenth Consecutive YearQuick_KkWA 1ms3644kbC++14310b2024-11-28 21:18:302024-11-28 21:18:30

Judging History

你现在查看的是最新测评结果

  • [2024-11-28 21:18:30]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3644kb
  • [2024-11-28 21:18:30]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
int main(){
    int t; cin>>t;
    for(int i=1923;i<=2023;++i){
        cout<<"? "<<i<<endl;cout.flush();
        int x; cin>>x; 
        if(x){
            cout<<"! "<<i;
            cout.flush();
            return 0;
        }
    }
    return 0;
}

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 3644kb

input:

1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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:

ok correct! (1 test case)

Test #2:

score: -100
Wrong Answer
time: 1ms
memory: 3636kb

input:

100
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1

output:

? 1923
? 1924
? 1925
? 1926
? 1927
? 1928
? 1929
? 1930
? 1931
? 1932
? 1933
? 1934
? 1935
? 1936
? 1937
? 1938
? 1939
? 1940
? 1941
? 1942
? 1943
? 1944
! 1944

result:

wrong answer format  Unexpected end of file - token expected (test case 2)