Submission #19832

# Submission time Handle Problem Language Result Execution time Memory
19832 2016-02-25T06:06:02 Z onjo0127 동전 (kriii4_E) C++
0 / 100
0 ms 1092 KB
#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 time Memory Grader output
1 Correct 0 ms 1092 KB Output is correct
2 Correct 0 ms 1092 KB Output is correct
3 Correct 0 ms 1092 KB Output is correct
4 Correct 0 ms 1092 KB Output is correct
5 Correct 0 ms 1092 KB Output is correct
6 Incorrect 0 ms 1092 KB Output isn't correct
7 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Halted 0 ms 0 KB -