Submission #20002

#TimeUsernameProblemLanguageResultExecution timeMemory
20002yukariko동전 (kriii4_E)C++98
0 / 100
0 ms1720 KiB
#include <bits/stdc++.h> using namespace std; #define MOD 1000000007 typedef long long lld; lld f(int n){ if(n < 3) return 1; n -= 2; lld r = (1LL<<n); if(n>3) r -= (1LL<<(n-3)); return r; } int main(){ int n; while(~scanf("%d", &n)) printf("%lld\n", f(n)); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...