66612023-12-15 18:35:29szabelrAranycipők (45)cpp17Wrong answer 30/454ms3376 KiB
#include <iostream>
using namespace std;
int main()
{
	int n=0, a,ln=0,db=0;
	cin >> n;
	int tomb[1001]{ 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/03ms1752 KiB
2Wrong answer0/03ms1988 KiB
3Partially correct2/33ms2196 KiB
4Partially correct2/33ms2564 KiB
5Partially correct2/33ms2644 KiB
6Partially correct2/32ms2724 KiB
7Partially correct2/32ms2732 KiB
8Partially correct2/33ms2856 KiB
9Partially correct2/33ms3068 KiB
10Partially correct2/33ms3156 KiB
11Partially correct2/33ms3148 KiB
12Partially correct2/33ms3148 KiB
13Partially correct2/33ms3140 KiB
14Partially correct2/33ms3140 KiB
15Partially correct2/34ms3288 KiB
16Partially correct2/33ms3232 KiB
17Partially correct2/34ms3376 KiB