Submission #778673

#TimeUsernameProblemLanguageResultExecution timeMemory
778673benjaminkleynBali Sculptures (APIO15_sculpture)C++17
0 / 100
1 ms320 KiB
#pragma GCC optimize("O3,unroll-loops") #pragma GCC target("avx,avx2,fma,bmi,bmi2") #include <bits/stdc++.h> using namespace std; typedef long long ll; int n, A, B; ll x[2000]; int main() { cin.tie(0)->sync_with_stdio(0); cin >> n >> A >> B; for (int i = 0; i < n; i++) cin >> x[i]; sort(x, x + n); ll ans = 0; for (int i = 0; i < n; i++) ans = ans | x[i]; cout << ans << '\n'; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...