ZOJ 3329 One Person Game