QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#776989 | #9794. ICPC Shenyang in NEU, the Tenth Consecutive Year | miaowu | WA | 1ms | 3628kb | C++23 | 458b | 2024-11-23 22:07:05 | 2024-11-23 22:07:05 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
using i64 = long long;
void solve() {
for(int i = 1923; i <= 2022; ++i) {
cout << "? " << i << endl;
int x; cin >> x;
if(x == 0) {
cout << "! " << i << endl;
return;
}
}
cout << "! 2023" << endl;
return;
}
int main() {
ios::sync_with_stdio(0); cin.tie(0);
int t; cin >> t; 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: 3628kb
input:
1 0
output:
? 1923 ! 1923
result:
wrong answer the answer is incorrect, expect: 2014, find: 1923 (test case 1)