56152023-08-09 21:31:57999Bájital (80 pont)cpp17Wrong answer 0/8037ms4768 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;
		s3+=a/3;
	}
	cout<<min(s3,sk)<<endl;
}
SubtaskSumTestVerdictTimeMemory
base0/80
1Accepted0/03ms1880 KiB
2Wrong answer0/03ms2112 KiB
3Wrong answer0/23ms2276 KiB
4Wrong answer0/23ms2496 KiB
5Wrong answer0/23ms2576 KiB
6Wrong answer0/23ms2576 KiB
7Wrong answer0/43ms2704 KiB
8Wrong answer0/43ms2948 KiB
9Wrong answer0/237ms3056 KiB
10Wrong answer0/237ms3096 KiB
11Wrong answer0/237ms3224 KiB
12Wrong answer0/237ms3436 KiB
13Wrong answer0/237ms3684 KiB
14Wrong answer0/237ms3768 KiB
15Wrong answer0/237ms3896 KiB
16Wrong answer0/237ms3844 KiB
17Wrong answer0/237ms3980 KiB
18Wrong answer0/237ms4100 KiB
19Wrong answer0/237ms4600 KiB
20Wrong answer0/237ms4728 KiB
21Wrong answer0/237ms4656 KiB
22Wrong answer0/237ms4760 KiB
23Wrong answer0/42ms4648 KiB
24Wrong answer0/42ms4652 KiB
25Wrong answer0/42ms4656 KiB
26Wrong answer0/421ms4764 KiB
27Wrong answer0/437ms4760 KiB
28Wrong answer0/437ms4652 KiB
29Wrong answer0/437ms4768 KiB
30Wrong answer0/237ms4648 KiB
31Wrong answer0/237ms4548 KiB
32Wrong answer0/237ms4544 KiB
33Wrong answer0/237ms4544 KiB