Approach hintTry it first, then revealHide
Map each team name to its number of goals while reading the lines, then print the name with the larger count. At most two distinct names appear and the match never ends in a draw.
Map each team name to its number of goals while reading the lines, then print the name with the larger count. At most two distinct names appear and the match never ends in a draw.