If a single "getchar","putchar" or "printf" cannot work, I can hardly think of any other ways to solve this problem. Will anyone who have solved it publish the code?
Reply
University of Science and Technology of China Online Judge for ACM/ICPC Processed in 6.2ms with 2 query(s).