data compression and binary search
change to scanf/printf, memory exceed