Submission #19896

# Submission time Handle Problem Language Result Execution time Memory
19896 2016-02-25T06:48:54 Z str 괄호 (kriii4_R) C++14
0 / 100
0 ms 8896 KB
#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 time Memory Grader output
1 Incorrect 0 ms 8896 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Halted 0 ms 0 KB -