Submission #19970

#TimeUsernameProblemLanguageResultExecution timeMemory
19970isac322동전 (kriii4_E)C++14
0 / 100
0 ms1084 KiB
#include <stdio.h> long long coin[251] = { 0, 1, 1, }; const long long int MOD = 1000000007; int main(){ int N; scanf("%d", &N); for(int i = 3; i<=N; i++){ coin[i] = (1 << (i-2)) % MOD; } printf("%lld\n", coin[N]); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...