Submission #19896

#TimeUsernameProblemLanguageResultExecution timeMemory
19896str괄호 (kriii4_R)C++14
0 / 100
0 ms8896 KiB
#include<cstdio> #define MAX 1000001 unsigned long long DP[MAX]; unsigned long long N, K; unsigned long long a; int main(){ scanf("%llu %llu", &N, &K); DP[1] = 1; a = 1; for (unsigned long long i = 2; i <= N; i++){ DP[i] = (1 + a); a *= 2; a %= 1000000007;; } printf("%llu\n", DP[N]); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...