Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
Rayne Wooney has been one of the top players for his football club for the last few years. But unfortunately, he got injured during a
Rayne Wooney has been one of the top players for his football club for the last few years. But unfortunately, he got injured during a game a few months back and has been out of play ever since. He's got proper treatment and is eager to go out and play for his team again. Before doing that, he has to prove to his fitness to the coach and manager of the team. Rayne has been playing practice matches for the past few days. He's played practice matches in all. He wants to convince the coach and the manager that he's improved over time and that his injury no longer affects his game. To increase his chances of getting back into the team, he's decided to show them stats of any of his practice games. The coach and manager will look into the goals scored in both the games and see how much he's improved. If the number of goals scored in the nd gamethe game which took place later is greater than that in st then he has a chance of getting in Tell Rayne what is the maximum improvement in terms of goal difference that he can show to maximize his chances of getting into the team. If he hasn't improved over time, he's not fit to play. Scoring equal number of goals in matches will not be considered an improvement. Also, he will be declared unfit if he doesn't have enough matches to show an improvement. Note: Large input data. Use faster IO methods. Prefer scanf,printf over cincout
Rayne Wooney has been one of the top players for his football club for the last few years. But unfortunately, he got injured during a game a few months back and has been out of play ever since.
He's got proper treatment and is eager to go out and play for his team again. Before doing that, he has to prove to his fitness to the coach and manager of the team. Rayne has been playing practice matches for the past few days. He's played practice matches in all.
He wants to convince the coach and the manager that he's improved over time and that his injury no longer affects his game. To increase his chances of getting back into the team, he's decided to show them stats of any of his practice games. The coach and manager will look into the goals scored in both the games and see how much he's improved. If the number of goals scored in the nd gamethe game which took place later is greater than that in st then he has a chance of getting in Tell Rayne what is the maximum improvement in terms of goal difference that he can show to maximize his chances of getting into the team. If he hasn't improved over time, he's not fit to play. Scoring equal number of goals in matches will not be considered an improvement. Also, he will be declared unfit if he doesn't have enough matches to show an improvement.
Note: Large input data. Use faster IO methods. Prefer scanf,printf over cincout
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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