# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|
19778 | | ainta | 동전 (kriii4_E) | C++98 | | 45 ms | 1348 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<stdio.h>
int D[260][260], Mod = 1000000007, n;
int main(){
int i,j,k;
scanf("%d",&n);
D[0][0]=1;
for(i=1;i<=n+1;i++){
for(j=1;j<=i;j++){
for(k=0;k<256;k++){
D[i][k^(j-1)] = (D[i][k^(j-1)] + D[i-j][k])%Mod;
}
}
}
printf("%d\n",D[n+1][0]);
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |