#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ // Input int N; //Number of candles cin >> N; long height; vector heights; for (int i=0; i> height; heights.push_back(height); } // Algorithm int tallCandleNo = 0; long tallestHeight = 0; for (int j=0; j tallestHeight) { tallestHeight = heights[j]; tallCandleNo = 1; } else if (heights[j] == tallestHeight) { tallCandleNo+=1; } } //Output cout << tallCandleNo; return 0; }