NC25042. [USACO 2007 Jan G]Cow School
描述
输入描述
Line 1: A single integer, N
Lines 2..N+1: Line i+1 contains two space-separated integers: Ti and Pi
输出描述
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.
示例1
输入:
5 1 2 5 9 3 8 4 10 1 3
输出:
2 1 2