QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#60400 | #4446. Link is as bear | qinjianbin# | WA | 338ms | 3536kb | C++17 | 455b | 2022-11-04 13:39:36 | 2022-11-04 13:39:40 |
Judging History
answer
#include<bits/stdc++.h>
#define rep(i, a, b) for(int i = (a); i < (b); i++)
#define _for(i, a, b) for(int i = (a); i <= (b); i++)
using namespace std;
typedef long long ll;
int n;
int main()
{
int T; scanf("%d", &T);
while(T--)
{
scanf("%d", &n);
ll ans = 0;
_for(i, 1, n)
{
ll x; scanf("%lld", &x);
_for(j, 0, 62)
if(x & (1LL << j))
ans |= 1LL << j;
}
printf("%lld\n", ans);
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 338ms
memory: 3536kb
input:
22222 100000 595189703884863 72716684812661 449525802123580 504421888022388 390139608591346 108895143840760 170477720052912 185583843894744 201608404318832 128831549357316 521084715261656 668960191579878 573530403227342 489014525501629 56366633717911 1705111713690 227582321537214 710815946393065 169...
output:
1125899906842623 1125899906842623 1125899906842623 1125899906842623 1125899906842623 1125899906842623 1125899906842623 1125899906842623 1125899906842623 1125899906842623 1125899906842623 1125899906842623 1125899906842623 1125899906842623 1125899906842623 1125899906842623 1125899906842623 11258999068...
result:
wrong answer 2223rd lines differ - expected: '1125219729113966', found: '1125899906842623'