# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
20160 | drhollow | 괄호 (kriii4_R) | C11 | 2000 ms | 8056 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <stdio.h>
int N,K;
int cnt = 0;
int D_val(int x, int y)
{
if (x==0 && y==0) return 1;
if (x<0 || y<0 || y>x) return 0;
return (K*D_val(x-1,y))+D_val(x,y-1);
}
int Sum_val(int n)
{
int x;
int ret=0;
for(x=0; x<=n; x++)
ret+= D_val(x,n-x);
return ret;
}
void catalan(int x, int y)
{
printf("x %d y %d\n",x, y);
if (y>x) return;
if (x==N && y==N) {cnt++; return;}
if (x>N || y>N) return;
catalan(x+1,y);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |