QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#426530 | #6804. Gaokao | ucup-team2279 | WA | 1ms | 4112kb | C++20 | 221b | 2024-05-31 14:30:23 | 2024-05-31 14:30:23 |
Judging History
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;
}
详细
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'