# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
67268 | yusufake | DEL13 (info1cup18_del13) | C++98 | 21 ms | 4280 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
#define mp make_pair
#define pb push_back
#define st first
#define nd second
typedef long long ll;
typedef pair < int , int > pp;
typedef vector < int > vi;
const int mod = 1e9 + 7;
const int N = 3e5 + 5;
int M[N][3],A[N],P[N],H[N],n,q,x,i,j,k,t,p,ww,ok;
int f(int i, int h){
if(i == 0) return h==0;
int &r = M[i][h];
if(r != -1) return r;
r = 0;
if(h > A[i]) return r = 0;
if(h == 0){
if(A[i]&1) r = f(P[i],1);
else r = f(P[i],2);
}
if(h == 1){
if(A[i]&1) { r = f(P[i],0); if(A[i]>2) r |= f(P[i],2); }
else r = f(P[i],1);
컴파일 시 표준 에러 (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... |