Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
265 B
1
Indexable
Never

#include <iostream>
using namespace std;

int main()
{
	
	int n = 1;
	int max = 0;
	int kol = 0;
	
	while (n!=0){
		cin >> n;
		if (n > max) {
			max = n;
			kol = 1;
		}
		else if(n == max) {
			kol++;
			
		}
	} 
	cout << kol ;
	
	

}