QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#48644 | #4184. Amusement Arcade | neko_nyaa# | WA | 3ms | 3616kb | C++20 | 373b | 2022-09-14 21:07:20 | 2022-09-14 21:07:22 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
ios::sync_with_stdio(0); cin.tie(0);
int n; cin >> n;
for (int i = 1; i < 60; i++) {
for (int j = i+1; j < 60; j++) {
if ((1LL << i) + (1LL << j) + 1 == n) {
cout << (1LL << i)+1 << '\n';
return 0;
}
}
}
cout << "impossible\n";
return 0;
}
詳細信息
Test #1:
score: 100
Accepted
time: 2ms
memory: 3568kb
input:
7
output:
3
result:
ok
Test #2:
score: 0
Accepted
time: 3ms
memory: 3568kb
input:
15
output:
impossible
result:
ok
Test #3:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
19
output:
3
result:
ok
Test #4:
score: -100
Wrong Answer
time: 3ms
memory: 3500kb
input:
2049
output:
impossible
result:
wrong output format Expected integer, but "impossible" found