0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-27 14:36:27 +00:00
Baoshuo Ren 2022-06-25 22:43:20 +08:00
parent fe3caadd4a
commit 23e95a90df
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

31
Codeforces/1696/A/A.cpp Normal file
View File

@ -0,0 +1,31 @@
#include <iostream>
using std::cin;
using std::cout;
const char endl = '\n';
int t, n, z;
long long a, x;
int main() {
std::ios::sync_with_stdio(false);
cin.tie(nullptr);
cin >> t;
while (t--) {
a = 0;
cin >> n >> z;
for (int i = 1; i <= n; i++) {
cin >> x;
a = std::max(a, x | z);
}
cout << a << endl;
}
return 0;
}