| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 471722 | rainboy | Rasvjeta (COCI17_rasvjeta) | C11 | 1 ms | 280 KiB | 
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <stdio.h>
int main() {
	int n, m, k, x, x_, ans;
	scanf("%d%d%d", &n, &m, &k);
	x = -k, ans = 0;
	while (m--) {
		scanf("%d", &x_);
		ans += (x_ - x - 1) / (k * 2 + 1), x = x_;
	}
	x_ = n + 1 + k;
	ans += (x_ - x - 1) / (k * 2 + 1), x = x_;
	printf("%d\n", ans);
	return 0;
}
Compilation message (stderr)
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
