59822023-10-09 17:03:54MorvaiVarkonyUtazásszervezés (75 pont)cpp11Wrong answer 8/756ms4096 KiB
// Source: https://usaco.guide/general/io

#include <bits/stdc++.h>
using namespace std;

int main() {
	int n,k,m,c;
	cin >> n >> k >> m >> c;
	vector<int> v(c);
	for (int i=0; i<c; i++) {
		cin >> v[i];
	}
	int jo=0;
	for (int i=0; i<n; i++) {
		for (int j=0; j<c; j++) {
			if (v[j]!=0) {
				jo++;
				v[j]=0;
				j+=m-2;
			}
		}
	}
	cout << jo;
}
SubtaskSumTestVerdictTimeMemory
base8/75
1Accepted0/03ms1812 KiB
2Wrong answer0/04ms2044 KiB
3Wrong answer0/33ms2100 KiB
4Wrong answer0/42ms2192 KiB
5Accepted4/43ms2428 KiB
6Wrong answer0/43ms2520 KiB
7Accepted4/42ms2604 KiB
8Wrong answer0/43ms2744 KiB
9Wrong answer0/53ms2824 KiB
10Wrong answer0/53ms3076 KiB
11Wrong answer0/64ms3168 KiB
12Wrong answer0/64ms3216 KiB
13Wrong answer0/64ms3196 KiB
14Wrong answer0/66ms3548 KiB
15Wrong answer0/66ms3644 KiB
16Wrong answer0/66ms3852 KiB
17Wrong answer0/66ms4096 KiB