problem 174, got "Wrong answer on test 2 	15 ms	7103 kb"
 - uset array t to make sure the wall's two ends are sorted, user binary
   search to find which set the new comming one is in.