Submission #19788

# Submission time Handle Problem Language Result Execution time Memory
19788 2016-02-25T05:39:57 Z Namnamseo 동전 (kriii4_E) C++14
0 / 100
0 ms 1084 KB
#include <cstdio>

int main()
{
    const int M=int(1e9)+7;
    int n;
    scanf("%d",&n);
    int ans=1;
    for(int i=3;i<=n;++i) ans=(ans*2)%M;
    printf("%d\n",ans);
    return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1084 KB Output is correct
2 Correct 0 ms 1084 KB Output is correct
3 Correct 0 ms 1084 KB Output is correct
4 Correct 0 ms 1084 KB Output is correct
5 Correct 0 ms 1084 KB Output is correct
6 Incorrect 0 ms 1084 KB Output isn't correct
7 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Halted 0 ms 0 KB -