QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#66065#4446. Link is as bearneko_nyaaWA 129ms3364kbC++23367b2022-12-06 10:12:062022-12-06 10:12:09

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-12-06 10:12:09]
  • 评测
  • 测评结果:WA
  • 用时:129ms
  • 内存:3364kb
  • [2022-12-06 10:12:06]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;

#define int long long
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());

signed main() {
	ios::sync_with_stdio(0); cin.tie(0);
	
	int t; cin >> t;
	while (t--) {
		int n; cin >> n;
		int x = 0;
		while (n--) {
			int k; cin >> k; x |= k;
		}
		cout << x << '\n';
	}

	return 0;
}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 129ms
memory: 3364kb

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'