poj problem id 1001 accept source code