Football the most popular sport in the world (americans insist to call it “Soccer”, but we will call it “Football”). As everyone knows, Brasil is the country that have most World Cup titles (four of them: 1958, 1962, 1970 and 1994). As our national tournament have many teams (and even regional tournaments have many teams also) it’s a very hard task to keep track of standings with so many teams and games played! So, your task is quite simple: write a program that receives the tournament name, team names and games played and outputs the tournament standings so far. A team wins a game if it scores more goals than its oponent. Obviously, a team loses a game if it scores less goals. When both teams score the same number of goals, we call it a tie. A team earns 3 points for each win, 1 point for each tie and 0 point for each loss. Teams are ranked according to these rules (in this order):
2/3 Output For each tournament, you must output the tournament name in a single line. In the next T lines you must output the standings, according to the rules above. Notice that should the tie-breaker be the lexographic order, it must be done case insenstive. The output format for each line is shown bellow: [a]) Team_name [b]p, [c]g ([d]-[e]-[f]), [g]gd ([h]-[i]) Where: • [a] = team rank • [b] = total points earned • [c] = games played • [d] = wins • [e] = ties • [f] = losses • [g] = goal difference • [h] = goals scored • [i] = goals against There must be a single blank space between fields and a single blank line between output sets. See the sample output for examples. Sample Input 2 World Cup 1998 - Group A 4 Brazil Norway Morocco Scotland 6 Brazil#2@1#Scotland Norway#2@2#Morocco Scotland#1@1#Norway Brazil#3@0#Morocco Morocco#3@0#Scotland Brazil#1@2#Norway Some strange tournament 5 Team A Team B Team C Team D Team E 5 Team A#1@1#Team B
3/3 Team A#2@2#Team C Team A#0@0#Team D Team E#2@1#Team C Team E#1@2#Team D Sample Output World Cup 1998 - Group A