QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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;
}
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'