221572026-01-14 17:29:48algoproBájital (80 pont)cpp17Wrong answer 2/8048ms1384 KiB
// UUID: fb4c9fe1-8513-4897-86da-a362b9ba588a
#include <bits/stdc++.h>
using namespace std;

int main() 
{
	long long ossz=0,mossz=0;
	long long n,x;
	cin>>n>>x;
	vector<long long>v(n);
	for(int i=0;i<n;i++)
	{
		cin>>v[i];
	}
	sort(v.begin(),v.end());
	for(int i=0;i<n;i++)
	{
		ossz=ossz+v[i]/3;
		mossz=mossz+v[i];
	}
	if(ossz>mossz/4)
	{
		cout<<mossz/4;
	}
	else cout<<ossz;
	return 0;
}
SubtaskSumTestVerdictTimeMemory
base2/80
1Accepted0/01ms316 KiB
2Wrong answer0/01ms316 KiB
3Wrong answer0/21ms316 KiB
4Wrong answer0/21ms508 KiB
5Wrong answer0/21ms316 KiB
6Wrong answer0/21ms316 KiB
7Wrong answer0/42ms416 KiB
8Wrong answer0/42ms316 KiB
9Wrong answer0/246ms1076 KiB
10Wrong answer0/246ms1076 KiB
11Accepted2/246ms1076 KiB
12Wrong answer0/246ms1188 KiB
13Wrong answer0/246ms1384 KiB
14Wrong answer0/246ms1360 KiB
15Wrong answer0/246ms1076 KiB
16Wrong answer0/246ms1076 KiB
17Wrong answer0/246ms1192 KiB
18Wrong answer0/246ms1096 KiB
19Wrong answer0/246ms1272 KiB
20Wrong answer0/246ms1076 KiB
21Wrong answer0/248ms1076 KiB
22Wrong answer0/246ms1076 KiB
23Wrong answer0/41ms316 KiB
24Wrong answer0/42ms316 KiB
25Wrong answer0/41ms316 KiB
26Wrong answer0/427ms1076 KiB
27Wrong answer0/446ms1076 KiB
28Wrong answer0/448ms1076 KiB
29Wrong answer0/446ms1076 KiB
30Wrong answer0/246ms1076 KiB
31Wrong answer0/246ms1076 KiB
32Wrong answer0/246ms1196 KiB
33Wrong answer0/246ms1196 KiB