|
|
вернуться в форумWhy 66% and 34%? 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%? 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:27Re: Why 66% and 34%? Very interesting. I solved it with 1 attemp. :) I think as author... Re: Why 66% and 34%? 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%? 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 |
|
|