56142023-08-09 21:31:04999Bájital (80 pont)cpp11Wrong answer 0/8037ms4692 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/03ms1872 KiB
2Wrong answer0/03ms2072 KiB
3Wrong answer0/23ms2160 KiB
4Wrong answer0/23ms2288 KiB
5Wrong answer0/23ms2496 KiB
6Wrong answer0/23ms2856 KiB
7Wrong answer0/43ms2992 KiB
8Wrong answer0/43ms3076 KiB
9Wrong answer0/237ms3136 KiB
10Wrong answer0/237ms3392 KiB
11Wrong answer0/237ms3472 KiB
12Wrong answer0/237ms3440 KiB
13Wrong answer0/237ms3544 KiB
14Wrong answer0/237ms3544 KiB
15Wrong answer0/237ms3676 KiB
16Wrong answer0/237ms3840 KiB
17Wrong answer0/237ms4080 KiB
18Wrong answer0/237ms4168 KiB
19Wrong answer0/237ms4168 KiB
20Wrong answer0/237ms4256 KiB
21Wrong answer0/237ms4252 KiB
22Wrong answer0/237ms4264 KiB
23Wrong answer0/42ms4348 KiB
24Wrong answer0/42ms4348 KiB
25Wrong answer0/42ms4344 KiB
26Wrong answer0/421ms4596 KiB
27Wrong answer0/437ms4568 KiB
28Wrong answer0/437ms4692 KiB
29Wrong answer0/437ms4688 KiB
30Wrong answer0/237ms4572 KiB
31Wrong answer0/237ms4692 KiB
32Wrong answer0/237ms4688 KiB
33Wrong answer0/237ms4688 KiB