삼분검색 문제
출처: http://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=1326