56162023-08-09 21:33:29999Bájital (80 pont)cpp17Wrong answer 0/8037ms5448 KiB
// Source: https://usaco.guide/general/io

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

signed main() {
	int n,x;cin>>n>>x;
	int s3=0,sk=0;
	for(int i = 0;i<n;i++){
		int a;cin>>a;
		sk+=a%3;
		a-=a%3;
		s3+=a/3;
	}
	cout<<min(s3,sk)<<endl;
}
SubtaskSumTestVerdictTimeMemory
base0/80
1Accepted0/03ms1744 KiB
2Wrong answer0/03ms2000 KiB
3Wrong answer0/23ms2236 KiB
4Wrong answer0/23ms2420 KiB
5Wrong answer0/23ms2660 KiB
6Wrong answer0/23ms2848 KiB
7Wrong answer0/43ms3004 KiB
8Wrong answer0/43ms3196 KiB
9Wrong answer0/237ms3408 KiB
10Wrong answer0/237ms3624 KiB
11Wrong answer0/237ms3700 KiB
12Wrong answer0/237ms3920 KiB
13Wrong answer0/237ms3920 KiB
14Wrong answer0/237ms4052 KiB
15Wrong answer0/237ms4128 KiB
16Wrong answer0/237ms4256 KiB
17Wrong answer0/237ms4340 KiB
18Wrong answer0/237ms4468 KiB
19Wrong answer0/237ms4584 KiB
20Wrong answer0/237ms4528 KiB
21Wrong answer0/237ms4632 KiB
22Wrong answer0/237ms4796 KiB
23Wrong answer0/42ms4924 KiB
24Wrong answer0/42ms4916 KiB
25Wrong answer0/43ms5004 KiB
26Wrong answer0/423ms5188 KiB
27Wrong answer0/437ms4968 KiB
28Wrong answer0/437ms4964 KiB
29Wrong answer0/437ms4964 KiB
30Wrong answer0/237ms5084 KiB
31Wrong answer0/237ms5332 KiB
32Wrong answer0/237ms5328 KiB
33Wrong answer0/237ms5448 KiB