# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
46589 | Mahdi_Jfri | Bali Sculptures (APIO15_sculpture) | C++14 | 178 ms | 868 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;
#define ll long long
#define pb push_back
const int maxn = 2e3 + 20;
const ll inf = (1LL << 51) - 1;
const int shit = 1e2 + 20;
int a[maxn] , dp[maxn] , n , _ , b;
bool pd[shit][shit];
int f(ll m)
{
for(int i = 1; i <= n; i++)
{
dp[i] = 1e9;
ll sum = 0;
for(int j = i - 1; j >= 0; j--)
{
sum += a[j + 1];
if((sum | m) == m)
dp[i] = min(dp[i] , dp[j] + 1);
}
}
# | 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... |