QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#144804#4184. Amusement Arcadevalue0WA 1ms3388kbC++20249b2023-08-21 18:57:512023-08-21 18:57:53

Judging History

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

  • [2023-08-21 18:57:53]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3388kb
  • [2023-08-21 18:57:51]
  • 提交

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