# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
42102 | minchurl | Bali Sculptures (APIO15_sculpture) | C++11 | 249 ms | 876 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#define MAX_N 2005
#define inf (1LL<<62)
#define LL long long
using namespace std;
LL n,a,b,ans,arr[MAX_N];
LL t[MAX_N];
bool ct[MAX_N][MAX_N];
bool case1(LL x){
LL i,j,sum,test,y,z,k,l;
bool p=false;
y=inf-1;y-=(1LL<<x)-1;
z=ans&y;
for(i=0;i<=n;i++) for(j=0;j<=n;j++) ct[i][j]=false;
ct[0][0]=true;
for(l=1;l<=b;l++){
for(i=1;i<=n;i++){
sum=0;
for(j=i;j>=1;j--){
sum+=arr[j];
k=sum&y;
if((z|k)==z) ct[l][i]|=ct[l-1][j-1];
}
if(l>=a) p|=ct[l][n];
}
}
return p;
}
bool is_ok(LL x){
LL i,j,sum,test,y,z,k;
컴파일 시 표준 에러 (stderr) 메시지
# | 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... |