ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1190. Плитка шоколада

Igor Goroshko To Admins [1] // Задача 1190. Плитка шоколада 8 июл 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)
Samsonov Ivan (Rybinsk SAAT) Re: To Admins // Задача 1190. Плитка шоколада 27 окт 2006 03:25
I not admin, but there :
9997+1+1+1+1=10001 answer NO.