| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 19740 | jihoon | 동전 (kriii4_E) | C++98 | 165 ms | 263228 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<cstdio>
#define je 1000000007;
long long bae[256][512][256];
int main(){
int n,coverage=1,cal;
scanf("%d",&n);
bae[0][0][0]=1;
for(int i=0;i<n;i++){
for(int j=0;j<=511;j++){
for(int k=0;k<=i;k++){
bae[i+1][j][0]+=bae[i][j][k];
bae[i+1][j][0]%=je;
cal=j;
cal^=k;cal^=k+1;
bae[i+1][cal][k+1]+=bae[i][j][k];
bae[i+1][cal][k+1]%=je;
}
}
}
for(int j=1;j<=n;j++){
bae[n][0][0]+=bae[n][0][j];
bae[n][0][0]%=je;
}
printf("%d",bae[n][0][0]);
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
