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

Обсуждение задачи 1187. Statistical Trouble

Why 66% and 34%?
Послано Maigo Akisame (maigoakisame@yahoo.com.cn) 29 сен 2004 12:46
Could anyone tell me why the percentages in Col 1 in Crosstable 1 in the sample output have 66% and 34% instead of 67% and 33%?

And what should I output if two percentages are, for example, 11.5% and 88.5%? 11% and 88%? 12% and 89%? 11% and 89%? Or 12% and 88%?


Edited by author 29.09.2004 12:50
Re: Why 66% and 34%?
Послано Vedernikoff Sergey 28 июн 2005 14:25
According to the task, you may output 11% and 89%, or 12% and 88%. But there is a problem with checker to this task (it verifies your output with author's answer). So, the single method to solve this problem - download tests to this task (http://neerc.ifmo.ru - it is from NEERC 2001) and write code, that generates outputs the same as are in author's solution...

Edited by author 28.06.2005 14:27
Re: Why 66% and 34%?
Послано Chmel_Tolstiy 17 июл 2008 02:27
Very interesting. I solved it with 1 attemp. :) I think as author...
Re: Why 66% and 34%?
Послано Denis Koshman 13 авг 2008 04:03
My method is to first round everything down, and then increase every roundable up value from left to right (top to bottom) until the sum becomes 100%. It gives different results than the sample output, but I've got AC at the first effort.
Re: Why 66% and 34%?
Послано SkorKNURE 6 окт 2008 06:58
I think checker is all-right. Firstly I had hope that my program was correct and checker was bad. But after long debug with the help of the NEERC's tests I realised all is quite the contrary :)

P.S.: I increased percentage in the same way as Denis Koshman. Good luck!

Edited by author 06.10.2008 06:59

Edited by author 06.10.2008 06:59