Example #1
0
 private static void TestRank()
 {
     int[] ints = StdIn.ReadAllInts();
     Array.Sort(ints);
     while (!StdIn.IsEmpty())
     {
         int key = StdIn.ReadInt();
         if (Rank(key, ints) < 0)
         {
             StdOut.Println(key); //如果不在名单里 则打印
         }
     }
 }