Submission #201997

#TimeUsernameProblemLanguageResultExecution timeMemory
201997mdn2002Bali Sculptures (APIO15_sculpture)C++14
0 / 100
5 ms380 KiB
#include<bits/stdc++.h> using namespace std; const int mod=1e9+7; long long n,y[2050],dp[2050][2050],a,b,sum; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); //freopen("empty.in","r",stdin); //freopen("empty.out","w",stdout); cin>>n>>a>>b; for(int i=0;i<n;i++)cin>>y[i]; for(int i=0;i<n;i++) { sum=(sum|y[i]); } cout<<sum; }
#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...