subject

Charles is in charge of running a single elimination tournament. In such a tournament, teams play until they lose a game. Charles had a stack of paper, each sheet containing the results of a game in this tournament. During the tournament, after every team had played at least one game, he was walking down the hallway, when he tripped and chucked the stack of results all over the place. Since the papers were completely scattered, he needs your help figuring out which teams are still in the tournament. Input Format The input to the program is a list of game results in the following format: Team1 Score1 Team2 Score2 Where Team1 is the away team's name Score1 is the away team's score Team2 is the home team's name Score2 is the home team's score Constraints The scores will be integers greater than 0 and less than 200. The team names will be alphabetic strings containing no spaces. No games resulted in a tie. Output Format The output of the program is a list of the undefeated teams in alphabetical order, with one team per line. Sample Input 0 Chargers 87 Doves 70 Giants 3 Heat 1 Bucks 98 Lions 67 Avalanche 10 Bucks 20 Chargers 27 Oilers 14 Islanders 60 Jaguars 15 Kings 17 Lakers 27 Giants 3 Lakers 1 Islanders 15 Flyers 27 Panthers 2 Flyers 4 Lions 104 Magic 98 Nationals 8 Oilers 15 Sample Output 0 Bucks Chargers Flyers Giants

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:30
Which component acts as a platform on which application software runs
Answers: 2
question
Computers and Technology, 24.06.2019 03:00
With editing, word automatically displays a paste options button near the pasted or moved text. a. cut-and-paste b. drag-and-drop c. inline d. copy-and-carry
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Why should you evaluate trends when thinking about a career path?
Answers: 1
question
Computers and Technology, 25.06.2019 01:00
Regular maintenance is a key component of automotive lift safety.
Answers: 1
You know the right answer?
Charles is in charge of running a single elimination tournament. In such a tournament, teams play un...
Questions
Questions on the website: 13722360