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 1190. Bar of Chocolate

To Admins
Posted by Igor Goroshko 8 Jul 2006 09:30
What is the least possible component percent can be?
For example, if test is:
5
a1 1 9997
a2 0
a3 0
a4 0
a5 0
Answer is "YES" or "NO"?
If least possible percent is 1 then
min=(9997+1+1+1+1)=10001, so the answer is "NO" else
If least possible percent is 0 then
min=(9997+0+0+0+0)=9997, so then answer is "YES".
I did two different programs, and both of them got AC.

So, Please tell me which one was right.
Thank You!!!

PS. Sorry For my poor English :)
PPS. It's non-increasing order there. (Not decreasing, as was written in problem)
Re: To Admins
Posted by Samsonov Ivan (Rybinsk SAAT) 27 Oct 2006 03:25
I not admin, but there :
9997+1+1+1+1=10001 answer NO.