Submission #19832

#TimeUsernameProblemLanguageResultExecution timeMemory
19832onjo0127동전 (kriii4_E)C++98
0 / 100
0 ms1092 KiB
#include <stdio.h> long long dp[1000]; int main() { int n,i; scanf("%d",&n); dp[1] = 1; dp[2] = 1; for(i=3;i<=n;i++) { dp[i] = dp[i-1] * 2; dp[i] %= 1000000007; } printf("%d",dp[n]); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...