QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#776989#9794. ICPC Shenyang in NEU, the Tenth Consecutive YearmiaowuWA 1ms3628kbC++23458b2024-11-23 22:07:052024-11-23 22:07:05

Judging History

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

  • [2024-11-23 22:07:05]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3628kb
  • [2024-11-23 22:07:05]
  • 提交

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)