# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
107698 | oolimry | Bali Sculptures (APIO15_sculpture) | C++14 | 164 ms | 512 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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... |