Uva 10258.Contest Scoreboard

Nov 18, 2009

Problem: 10258.Contest Scoreboard

Background of the Solution:

There is a difficulty to take input. This can be solved by following code:
1. Remember, when a solution is accepted then penalty time is added .otherwise not.
2. First sort descending order according to total solved problem, if equal , then sort ascending order according to penalty time, if equal ,then sort ascending order according to team number
3. Same problem can accept twice; take only first time, other is ignored (see first input).
4. Use structure & use qsort function.
5. Initialize the data correctly.
6. The outputs of two consecutive cases will be separated by a blank line.
7. Last has no newline.....Be Careful.


Code In C/C++:

No comments:

Post a Comment