Submission #19931

#TimeUsernameProblemLanguageResultExecution timeMemory
19931ilbbke동전 (kriii4_E)C++98
0 / 100
0 ms1084 KiB
#include<stdio.h> #define M 1000000007 int n; long long dy[255]; int main() { scanf("%d",&n); dy[1]=1; dy[2]=1; int i,j; for(i=3;i<=n;i++){ for(j=i-2;j>=1;j--){ dy[i]=(dy[i]+dy[j]*2%M)%M; } } printf("%lld",dy[n]); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...