# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
107698 | oolimry | Bali Sculptures (APIO15_sculpture) | C++14 | 164 ms | 512 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
long long target = 0ll; ///1's at that bit means that we want to keep that bit with a value of 0
int main()
{
//freopen("i.txt","r",stdin);
ios_base::sync_with_stdio(false);
cin.tie(0);
int n, a, b;
cin >> n >> a >> b;
long long arr[n];
for(int i = 0;i < n;i++){
cin >> arr[i];
}
long long all = (1ll << 51) - 1;
for(int i = 1;i < n;i++){
arr[i] += arr[i-1];
}
if(n <= 200){
bool dp[n][b];
for(long long bit = 50;bit >= 0;bit--){
///check if we can keep that value at 0
target ^= (1ll << bit);
for(int i = 0;i < n;i++){
for(int k = 0;k < b;k++){
dp[i][k] = false;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |