# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
91550 | Bodo171 | Bali Sculptures (APIO15_sculpture) | C++14 | 183 ms | 1116 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 <iostream>
#include <fstream>
using namespace std;
const int nmax=2005;
long long v[nmax];
int best[nmax];
bool dp[105][105];
long long sum,frb,ans;
int n,i,j,k,a,b;
bool chk_brt(long long val)
{
dp[0][0]=1;
for(i=1;i<=n;i++)
for(j=1;j<=n;j++)
dp[i][j]=0;
for(i=1;i<=n;i++)
for(j=1;j<=n;j++)
{
sum=0;
for(k=j;k>=1;k--)
{
sum+=v[k];
if((sum&frb)==0)
dp[i][j]|=dp[i-1][k-1];
}
if(i>=a&&i<=b&&dp[i][n])
return 1;
}
return 0;
}
# | 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... |