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 1187. Statistical Trouble

Why 66% and 34%?
Posted by Maigo Akisame (maigoakisame@yahoo.com.cn) 29 Sep 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%?
Posted by Vedernikoff Sergey 28 Jun 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%?
Posted by Chmel_Tolstiy 17 Jul 2008 02:27
Very interesting. I solved it with 1 attemp. :) I think as author...
Re: Why 66% and 34%?
Posted by Denis Koshman 13 Aug 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%?
Posted by SkorKNURE 6 Oct 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