QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#144804 | #4184. Amusement Arcade | value0 | WA | 1ms | 3388kb | C++20 | 249b | 2023-08-21 18:57:51 | 2023-08-21 18:57:53 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
ll lowbit(ll x)
{
return x & -x;
}
int main()
{
ll n;
cin>>n;
n --;
if(n == lowbit(n))
{
puts("1");
}
else
{
puts("impossible");
}
return 0;
}
详细
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3388kb
input:
7
output:
impossible
result:
wrong output format Expected integer, but "impossible" found