Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Ekta loves juggling. She is taking part in a juggling contest at the village fair and is trying to top the leaderboard. On the leaderboard,
Ekta loves juggling. She is taking part in a juggling contest at the village fair and is trying to top the leaderboard. On the leaderboard, the player with the highest score gets Rank 1 , the next highest score gets Rank 2, and so on. Players who have the same score get the same rank, and the next player receives the immediately following rank i.e. no ranks are skipped. Each player gets a fixed number of attempts to juggle. After every attempt, the player's best score in all previous attempts is used to rank the player on the leaderboard. Ekta is about to start her attempts and wants to keep track of her progress on the leaderboard with each attempt. Can you help her by writing a program for that? Read the input from STDIN and print the output to STDOUT. Do not write arbitrary strings anywhere in the program, as these contribute to the standard output and testcases will fail. Constraints: 1
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