The problem link http://www.codeforces.com/contest/73/problem/B
Consider this sample input:
3
teama 1
teamb 20
teamc 10
3
17 29 35
teama
In the custom test I ran sohelH’s code for the above input which was Accepted in the contest. It gives 3 3 as output.
But when I ran some others( hos.lyric code) Accepted code for the above input. It gives 2 3 as output.
Can anyone clarify me why this difference shows?.Am i misunderstanding something?
You'd better provide link to problem statement and to "other solutions".
How could "teama" have "1" point in your case, by the way? (I mean that it is possible solution in question rely on correctness of testcase)