GoLang Solution For UVa Online Judge: 10194 - Football (aka Soccer)
GO Solution For UVa 10194 - Football (aka Soccer). In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.
Problem Description
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 tourn
...You can find the full details of the problem Football (aka Soccer) at UVa Online Judge
Sample Input
2 World Cup 1998 - Group A 4 Brazil Norway Morocco Scotland 6 Brazil#[email protected]#Scotland Norway#[email protected]#Morocco Scotland#[email protected]#Norway Brazil#[email protected]#Morocco Morocco#[email protected]#Scotland Brazil#[email protected]#Norway Some strange tournament 5 Team A Team B Team C Team D Team E 5 Team A#[email protected]#Team B Team A#[email protected]#Team C Team A#[email protected]#Team D Team E#[email protected]#Team C Team E#[email protected]#Team D
Sample Output
World Cup 1998 - Group A 1) Brazil 6p, 3g (2-0-1), 3gd (6-3) 2) Norway 5p, 3g (1-2-0), 1gd (5-4) 3) Morocco 4p, 3g (1-1-1), 0gd (5-5) 4) Scotland 1p, 3g (0-1-2), -4gd (2-6) Some strange tournament 1) Team D 4p, 2g (1-1-0), 1gd (2-1) 2) Team E 3p, 2g (1-0-1), 0gd (3-3) 3) Team A 3p, 3g (0-3-0), 0gd (3-3) 4) Team B 1p, 1g (0-1-0), 0gd (1-1) 5) Team C 1p, 2g (0-1-1), -1gd (3-4)
Solution: Please check the main.go snippet for the solution.
Solution originally posted at: Github by @codingsince1985
Comments
Leave a comment
You are not LoggedIn but you can comment as an anonymous user which requires manual approval. For better experience please Login.