#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int num_candles = 0; cin >> num_candles; int max = 0; int num_of_max = 0; int temp; for(int i=0; i> temp; if(temp == max){ num_of_max++; } else if (temp > max){ num_of_max = 1; max = temp; } } cout << num_of_max; return 0; }