Submission #19904

# Submission time Handle Problem Language Result Execution time Memory
19904 2016-02-25T06:54:52 Z inspire12 괄호 (kriii4_R) C++
0 / 100
0 ms 1084 KB
#include <cstdio>
#include <vector>
#include <queue>

using namespace std;
int main() {
	int n, s; 
	long long m;
	
	scanf("%d %d", &n, &s);
	long long res = 3;
	long long ri = 2;
	for (int i = 2; i < n; i++) {
		if ((i + 1) % 2 == 0) ri += 1;
		else ri += 2;
		res += ri;
	}
	
	printf("%lld", res%1000000007);
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 1084 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Halted 0 ms 0 KB -