QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#802033#9794. ICPC Shenyang in NEU, the Tenth Consecutive Yearert#WA 1ms3660kbC++14544b2024-12-07 11:30:152024-12-07 11:30:19

Judging History

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

  • [2024-12-07 11:30:19]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3660kb
  • [2024-12-07 11:30:15]
  • 提交

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>;

int main(){
    // cin.tie(nullptr);
	// ios::sync_with_stdio(false);

	int t;
	cin >> t;
	bool label = true;
	while(t--){
		for ( int i = 1923; i <= 2022; i++){
			cout << "?" << i << endl;
			int r;
			cin >> r;
			if ( r == 1){	
				label = false;
				cout << "!" << i << endl;
				break;
			}		
		}
		if ( label)cout << "!" << 2023 << endl;
	}

	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3660kb

input:

1

output:

?1923

result:

wrong answer unexpected option: ?1923 (test case 1)