QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#151478 | #5556. Diabolic Doofenshmirtz | value0 | WA | 1ms | 3608kb | C++20 | 467b | 2023-08-26 19:13:47 | 2023-08-26 19:13:52 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll n, k;
ll query(ll x)
{
cout<<"? "<<x<<endl;
std::cout << std::flush;
ll res;
cin>>res;
return res;
}
void solve()
{
ll r = 1e12 + 10;
ll m = query(r);
ll t = r - m;
t *= 2;
ll ans = query(t);
cout<<"! "<<ans<<endl;
std::cout << std::flush;
}
int main()
{
int t = 1;
// cin>>t;
while (t--)
{
solve();
}
return 0;
}
详细
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3608kb
input:
32 0
output:
? 1000000000010 ? 1999999999956 ! 0
result:
wrong answer Wrong answer: wrong lap length