QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#426530#6804. Gaokaoucup-team2279WA 1ms4112kbC++20221b2024-05-31 14:30:232024-05-31 14:30:23

Judging History

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

  • [2024-05-31 14:30:23]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:4112kb
  • [2024-05-31 14:30:23]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main(){
	int T;
	scanf("%d",&T);
	while(T--){
		ll n;
		scanf("%lld",&n);
		printf("%lld\n",1ll<<__builtin_popcountll(n));
	}
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 4112kb

input:

3
3
4
5

output:

4
2
4

result:

wrong answer 1st lines differ - expected: '2', found: '4'