답안 #158463

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
158463 2019-10-17T08:18:00 Z dcj Rasvjeta (COCI17_rasvjeta) C++14
10 / 50
3 ms 504 KB
#include <iostream>
using namespace std;

int main()
{
	int N, M, K, X;
	cin >> N;
	cin >> M;
	cin >> K;
	int br=0, x, y=2*K+1;
	cin >> X;
		br+=(X-K-1)/y+bool(X>K);
	x=X;
	while(--M>1) {
		cin >> X;
		br+=(X-x)/y;
		x=X;
	}
	cin >> X;
	br+=(N-X-K-1)/y+bool(N-X>K);

	cout << br;
	return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 376 KB Output isn't correct
2 Incorrect 2 ms 256 KB Output isn't correct
3 Incorrect 2 ms 256 KB Output isn't correct
4 Incorrect 3 ms 256 KB Output isn't correct
5 Incorrect 2 ms 376 KB Output isn't correct
6 Incorrect 3 ms 376 KB Output isn't correct
7 Incorrect 2 ms 256 KB Output isn't correct
8 Correct 2 ms 376 KB Output is correct
9 Correct 3 ms 504 KB Output is correct
10 Incorrect 3 ms 376 KB Output isn't correct