QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#802042 | #9794. ICPC Shenyang in NEU, the Tenth Consecutive Year | ert# | WA | 1ms | 3676kb | C++14 | 543b | 2024-12-07 11:33:00 | 2024-12-07 11:33:04 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
using i64 = long long;
using u64 = unsigned long long;
using u32 = unsigned;
using pii = pair<int,int>;
void solve(){
for ( int i = 1923; i <= 2022; i++){
cout << "?" << i << endl;
int t;
cin >> t;
if ( t == 1){
cout << "!" << i << endl;
return ;
}
}
cout << "!" << 2023 << endl;
return;
}
int main(){
// cin.tie(nullptr);
// ios::sync_with_stdio(false);
int t;
cin >> t;
bool label = true;
while(t--){
solve();
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3676kb
input:
1
output:
?1923
result:
wrong answer unexpected option: ?1923 (test case 1)