codeforces #323 div 2 B. Robot's Task(又是暴力?