You are viewing a single comment's thread. Return to all comments →
using namespace std;
using ll = long long;
int main(){ int n; cin >> n; multiset s; for (int i = 0; i < n; i++){ int temp; cin >> temp; s.insert(temp); } cout << s.count(*s.rbegin()); }
Seems like cookies are disabled on this browser, please enable them to open this website
Birthday Cake Candles
You are viewing a single comment's thread. Return to all comments →
include
using namespace std;
using ll = long long;
int main(){ int n; cin >> n; multiset s; for (int i = 0; i < n; i++){ int temp; cin >> temp; s.insert(temp); } cout << s.count(*s.rbegin()); }