Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|

Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |

Language: Cow School
Description Bessy is going to school and doing well. She has taken P points for test _{i}i; 0 ≤ T ≤ _{i}P < 40,000; 0 < _{i}P) as this task's input._{i}Her teacher will drop the To prove her point, Bessy wants to find all values of Bessy has noted that, amazingly, she has never scored the same percentage on two different tests. Input Line 1: A single integer, N
Lines 2.. N+1: Line i+1 contains two space-separated integers: T and _{i}P_{i}Output Line 1: A single integer K (0 ≤ K ≤ N) that is the number of values of D for which Bessy could have ended up with a higher grade by dropping a different set of D tests than the teacher.
Lines 2.. K+1: The values of D for which this is true, in ascending numerical order.Sample Input 5 1 2 5 9 3 8 4 10 1 3 Sample Output 2 1 2 Source |

[Submit] [Go Back] [Status] [Discuss]

All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di

Any problem, Please Contact Administrator