Answered step by step
Verified Expert Solution
Question
1 Approved Answer
use c++ (if can dont use stream.io) thank you Budi morks in the theld of essports. His biess asked him to sort the data of
use c++
Budi morks in the theld of essports. His biess asked him to sort the data of esport phayers bsised on their munes and MMIt wulaes You nesd to help him by creating a simple program to sont the provided data. Given Y number of existing plieyers. where cach player has a name and an Maft value, sort the plisver data in desiending order hasod on flee MAIR value owned by each player. If there are players wrth the SA ME. MMIR value vou have to oort them to their narne in aseruliag alphabotical orler. Format Input The first line of inyat corrists of an integer N. desoting tive number of players. For the mext N linus, ach contains struss 8 and integer Y, in which the S represcats the phowr's mame, and I represente the playtr's Man value Format Output The outpit is the list of sorter pliver datin by their MMif value in descending order. If there are pliyers with the SAME MNIR vilte. you have to sart them by their name in areending inhliabetion order. Don't forget to append a newline at the end of ench ontput. Constraints - i*sic 100,000 - 1 is y=120.000 - 1(if can dont use stream.io)
thank you
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started