52342023-04-23 15:46:32Laci3000Bájital (80 pont)cpp17Wrong answer 54/80261ms4432 KiB
// nemes 2023 bajital.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include<vector>
#include <iostream>

using namespace std;
int main()
{
	cin.sync_with_stdio(false);
	cin.tie(nullptr);
	
	int folyadekok, x;
	cin >> folyadekok >> x;
	int fozesre = 0, aktual;
	int korok = 0;
	for (size_t i = 0; i < folyadekok; i++)
	{
		cin >> aktual;
		fozesre += aktual % x;
		aktual -= aktual % x;
		korok += aktual / x;
		

	}
	while (fozesre < korok) {
		fozesre += x;
		korok = korok - 1;
	}
	cout << korok << '\n';
}

SubtaskSumTestVerdictTimeMemory
base54/80
1Accepted0/03ms1896 KiB
2Accepted0/03ms2080 KiB
3Accepted2/24ms2296 KiB
4Accepted2/23ms2508 KiB
5Accepted2/23ms2728 KiB
6Accepted2/23ms2832 KiB
7Accepted4/43ms3036 KiB
8Accepted4/410ms3252 KiB
9Wrong answer0/214ms3344 KiB
10Wrong answer0/2143ms3328 KiB
11Wrong answer0/214ms3564 KiB
12Wrong answer0/252ms3672 KiB
13Wrong answer0/2127ms3760 KiB
14Wrong answer0/214ms3756 KiB
15Wrong answer0/214ms3888 KiB
16Wrong answer0/2118ms3972 KiB
17Wrong answer0/274ms4244 KiB
18Wrong answer0/245ms4228 KiB
19Wrong answer0/214ms4324 KiB
20Accepted2/239ms4116 KiB
21Accepted2/228ms4208 KiB
22Accepted2/223ms4112 KiB
23Accepted4/43ms4108 KiB
24Accepted4/43ms4112 KiB
25Accepted4/43ms4256 KiB
26Accepted4/410ms4244 KiB
27Accepted4/416ms4328 KiB
28Accepted4/414ms4328 KiB
29Accepted4/414ms4324 KiB
30Accepted2/214ms4324 KiB
31Accepted2/214ms4324 KiB
32Time limit exceeded0/2261ms3588 KiB
33Wrong answer0/2136ms4432 KiB