UVa 10258 - Contest Scoreboard

Straightforward solution, just read the problem specs carefully. Use string streams to parse the input, they're fast enough for this problem. Define a struct that represents a team and write a comparator for it. Then use the STL sort algo.