66602023-12-15 18:33:35szabelrAranycipők (45)cpp17Wrong answer 30/454ms3356 KiB
#include <iostream>
using namespace std;
int main()
{
	int n=0, a,ln=0,db=0;
	cin >> n;
	int tomb[1000]{ 0 };
	for (int i = 1; i <= n; i++) 
	{
		cin >> a;
		tomb[i] = a;
		if (a > ln) {
			ln = a;
			db = 0;
			db++;
		}
		if (a = ln)
			db++;
	}
	cout << ln << endl;
	cout << db << endl;
	for (int i = 1; i <= n; i++) 
	{
		if (tomb[i] == ln)
			cout << i << endl;
	}
}
SubtaskSumTestVerdictTimeMemory
base30/45
1Wrong answer0/03ms1876 KiB
2Wrong answer0/03ms2120 KiB
3Partially correct2/33ms2180 KiB
4Partially correct2/33ms2392 KiB
5Partially correct2/33ms2460 KiB
6Partially correct2/33ms2592 KiB
7Partially correct2/33ms2676 KiB
8Partially correct2/33ms2952 KiB
9Partially correct2/33ms2892 KiB
10Partially correct2/34ms3004 KiB
11Partially correct2/33ms2996 KiB
12Partially correct2/33ms3228 KiB
13Partially correct2/33ms3264 KiB
14Partially correct2/33ms3248 KiB
15Partially correct2/33ms3312 KiB
16Partially correct2/33ms3356 KiB
17Partially correct2/33ms3324 KiB