56172023-08-09 21:38:15999Bájital (80 pont)cpp17Wrong answer 12/8041ms4820 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;
	while(n--){
		int a;cin>>a;
		sk+=a%x;
		a-=a%x;
		s3+=a/x;
	}
	cout<<min(s3,sk)<<endl;
}
SubtaskSumTestVerdictTimeMemory
base12/80
1Accepted0/03ms1872 KiB
2Wrong answer0/03ms2216 KiB
3Wrong answer0/23ms2248 KiB
4Wrong answer0/23ms2472 KiB
5Wrong answer0/23ms2592 KiB
6Wrong answer0/23ms2764 KiB
7Wrong answer0/43ms2980 KiB
8Wrong answer0/43ms3056 KiB
9Wrong answer0/241ms3100 KiB
10Wrong answer0/241ms3452 KiB
11Wrong answer0/241ms3684 KiB
12Wrong answer0/241ms4052 KiB
13Wrong answer0/239ms4040 KiB
14Wrong answer0/239ms3928 KiB
15Wrong answer0/239ms3992 KiB
16Wrong answer0/239ms4052 KiB
17Wrong answer0/241ms4196 KiB
18Wrong answer0/239ms4312 KiB
19Wrong answer0/241ms4168 KiB
20Wrong answer0/241ms4176 KiB
21Wrong answer0/239ms4172 KiB
22Wrong answer0/239ms4328 KiB
23Wrong answer0/42ms4312 KiB
24Accepted4/43ms4436 KiB
25Wrong answer0/42ms4520 KiB
26Accepted4/425ms4520 KiB
27Wrong answer0/439ms4516 KiB
28Wrong answer0/439ms4648 KiB
29Wrong answer0/439ms4688 KiB
30Accepted2/239ms4764 KiB
31Accepted2/239ms4820 KiB
32Wrong answer0/241ms4668 KiB
33Wrong answer0/241ms4728 KiB