52332023-04-23 15:44:57Laci3000Bájital (80 pont)cpp17Wrong answer 54/80263ms5172 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);
	vector<int>overxS;
	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;
		overxS.push_back(aktual);

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

SubtaskSumTestVerdictTimeMemory
base54/80
1Accepted0/03ms1828 KiB
2Accepted0/03ms2020 KiB
3Accepted2/24ms2232 KiB
4Accepted2/23ms2468 KiB
5Accepted2/23ms2580 KiB
6Accepted2/23ms2804 KiB
7Accepted4/43ms2908 KiB
8Accepted4/412ms2952 KiB
9Wrong answer0/214ms4156 KiB
10Wrong answer0/2143ms4284 KiB
11Wrong answer0/214ms4324 KiB
12Wrong answer0/252ms4588 KiB
13Wrong answer0/2127ms4544 KiB
14Wrong answer0/214ms4604 KiB
15Wrong answer0/214ms4604 KiB
16Wrong answer0/2118ms4680 KiB
17Wrong answer0/275ms4596 KiB
18Wrong answer0/245ms4796 KiB
19Wrong answer0/214ms5016 KiB
20Accepted2/239ms4972 KiB
21Accepted2/228ms4880 KiB
22Accepted2/224ms4936 KiB
23Accepted4/42ms3876 KiB
24Accepted4/43ms3976 KiB
25Accepted4/43ms3896 KiB
26Accepted4/410ms5040 KiB
27Accepted4/417ms5012 KiB
28Accepted4/414ms4940 KiB
29Accepted4/414ms4940 KiB
30Accepted2/214ms4944 KiB
31Accepted2/214ms4948 KiB
32Time limit exceeded0/2263ms3704 KiB
33Wrong answer0/2136ms5172 KiB