QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#802047#9794. ICPC Shenyang in NEU, the Tenth Consecutive Yearert#WA 0ms3580kbC++14512b2024-12-07 11:35:532024-12-07 11:35:53

Judging History

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

  • [2024-12-07 11:35:53]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3580kb
  • [2024-12-07 11:35:53]
  • 提交

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;
}
int main(){
    // cin.tie(nullptr);
	// ios::sync_with_stdio(false);

	int t;
	cin >> t;
	while(t--){
		solve();

	}

	return 0;
}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3580kb

input:

1

output:

?1923

result:

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