#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int noOfCases = 0; cin >> noOfCases; vector vec; int max = 0; int cnt = 0; int number = 0; while(cin >> number) { if(number > max) { max = number; cnt = 0; } if(number == max) { cnt++; } } cout << cnt; return 0; }