220932026-01-14 16:56:39algoproBájital (80 pont)cpp17Wrong answer 0/8037ms512 KiB
// UUID: e0f475bb-f639-4493-a104-0ff5945de828
#include <bits/stdc++.h>
#include <cmath>
using namespace std;

int main() {
	int n, x; cin >> n >> x;
    int a = 0, r = 0;
	int bro;
	for (int i = 0; i < n; i++) {
		cin >> bro;
		a += bro / 3;
		r += bro % 3;
	}

	if (a > r) a -= ceil((a - r)/(x-1));
	
	cout << a;
}
SubtaskSumTestVerdictTimeMemory
base0/80
1Accepted0/01ms500 KiB
2Wrong answer0/01ms316 KiB
3Wrong answer0/21ms512 KiB
4Wrong answer0/21ms316 KiB
5Wrong answer0/21ms316 KiB
6Wrong answer0/21ms316 KiB
7Wrong answer0/42ms316 KiB
8Wrong answer0/42ms316 KiB
9Wrong answer0/235ms316 KiB
10Wrong answer0/235ms396 KiB
11Wrong answer0/237ms508 KiB
12Wrong answer0/237ms500 KiB
13Wrong answer0/235ms508 KiB
14Wrong answer0/235ms316 KiB
15Wrong answer0/235ms392 KiB
16Wrong answer0/235ms396 KiB
17Wrong answer0/237ms316 KiB
18Wrong answer0/235ms508 KiB
19Wrong answer0/237ms400 KiB
20Wrong answer0/235ms392 KiB
21Wrong answer0/235ms500 KiB
22Wrong answer0/235ms316 KiB
23Wrong answer0/41ms508 KiB
24Wrong answer0/41ms508 KiB
25Wrong answer0/41ms316 KiB
26Wrong answer0/420ms508 KiB
27Wrong answer0/435ms400 KiB
28Wrong answer0/435ms512 KiB
29Wrong answer0/435ms316 KiB
30Wrong answer0/235ms508 KiB
31Wrong answer0/235ms404 KiB
32Wrong answer0/237ms400 KiB
33Runtime error0/237ms316 KiB