3
string longestDiverseString(int a, int b, int c) {5
priority_queue<pair<int, char>> pq;6
if (a) pq.push({a, 'a'});7
if (b) pq.push({b, 'b'});8
if (c) pq.push({c, 'c'});10
while (pq.size() > 1) {11
pair<int, char> one = pq.top();13
pair<int, char> two = pq.top();23
if (two.first >= 2 && two.first >= one.first) {31
if (one.first > 0) pq.push(one);32
if (two.first > 0) pq.push(two);34
if (pq.empty()) return ans;35
if (pq.top().first >= 2) {36
ans += pq.top().second;37
ans += pq.top().second;39
ans += pq.top().second;