ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1739. Faryuks

wa #8
Posted by aabbyy 2 Nov 2013 12:05
can someone give me some tips or tests?
Re: wa #8
Posted by MVM 10 Jul 2016 00:34
You can only use both modifiers once during whole process; you can't restock between "take" operations. For example, answer for test

4
208 100 208 100

is IMPOSSIBLE (at least according to my AC program): you can take 208, 100 by using deodorant on 208, but you can't do it twice.