TopCoder SRM570 RobotHerb
TopCoder SRM569 TheDevice