Показать все ветки Спрятать все ветки Показать все сообщения Спрятать все сообщения |
Why 66% and 34%? | Maigo Akisame (maigoakisame@yahoo.com.cn) | 1187. Statistical Trouble | 6 окт 2008 06:58 | 5 |
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 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:27Very interesting. I solved it with 1 attemp. :) I think as author... 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. 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 |
can any one who solved this problem help me? | Fechete Dan Ionut[dany] | 1187. Statistical Trouble | 13 авг 2008 04:08 | 2 |
my program gives the same output file as th oficial ones but goth WA any tricks about end of line or something? Try to swap questions in cross-table queries. This way you will check that "-" are reported correctly in columns. |
TO ADMINS : I think there's a problem with test cases or checker :( | I have answers to all your questions :) | 1187. Statistical Trouble | 7 мар 2002 23:44 | 4 |
Hehe, you're new to the server, ha :))) Admins look at the board very rarely lately. So, SEND THEM A MAIL, smart guy, and do not full the webboard with rubbish. The mail is acm@timus.ru Do you mean the tests from NEERC website ? I've just download them to test my program and it always gives correct answer :( |
could anyone explain me ... :( | I have answers to all your questions :) | 1187. Statistical Trouble | 7 мар 2002 23:33 | 1 |
why the first program passed sample input but the second one didn't ? the first : #include <stdio.h> #include <string.h> void main() { char line[10000]; gets(line); puts("New Year Phone Survey for ACM ICPC - Health vs greeting style"); puts("Q01 Hello!"); puts(" H Hello!"); puts(" Y Yes!"); puts(" * Uhm..."); puts(" . (silence)"); puts(" @ (other)"); puts("Q02 How are you?"); puts(" H Hello!"); puts(" Y Yes!"); puts(" F Fine!"); puts(" Q Who are you?"); puts(" @ (other)"); puts(""); puts(" Q02:H Q02:Y Q02:F Q02:Q Q02:@ TOTAL"); puts(" Q01:H 2 0 1 1 1 5"); puts(" 40% 0% 20% 20% 20% 100%"); puts(" 66% 0% 50% 100% 33% 50%"); puts(" Q01:Y 0 1 1 0 0 2"); puts(" 0% 50% 50% 0% 0% 100%"); puts(" 0% 100% 50% 0% 0% 20%"); puts(" Q01:* 0 0 0 0 0 0"); puts(" - - - - - -"); puts(" 0% 0% 0% 0% 0% 0%"); puts(" Q01:. 1 0 0 0 2 3"); puts(" 33% 0% 0% 0% 67% 100%"); puts(" 34% 0% 0% 0% 67% 30%"); puts(" Q01:@ 0 0 0 0 0 0"); puts(" - - - - - -"); puts(" 0% 0% 0% 0% 0% 0%"); puts(" TOTAL 3 1 2 1 3 10"); puts(" 30% 10% 20% 10% 30% 100%"); puts(" 100% 100% 100% 100% 100% 100%"); puts(""); puts("New Year Phone Survey for ACM ICPC - Politeness matrix"); puts("Q02 How are you?"); puts(" H Hello!"); puts(" Y Yes!"); puts(" F Fine!"); puts(" Q Who are you?"); puts(" @ (other)"); puts("BYE Happy New Year!"); puts(" Y You too."); puts(" * (censored)"); puts(" @ (other)"); puts(" . (hang up)"); puts(""); puts(" BYE:Y BYE:* BYE:@ BYE:. TOTAL"); puts(" Q02:H 0 0 3 0 3"); puts(" 0% 0% 100% 0% 100%"); puts(" 0% 0% 100% 0% 30%"); puts(" Q02:Y 1 0 0 0 1"); puts(" 100% 0% 0% 0% 100%"); puts(" 33% 0% 0% 0% 10%"); puts(" Q02:F 2 0 0 0 2"); puts(" 100% 0% 0% 0% 100%"); puts(" 67% 0% 0% 0% 20%"); puts(" Q02:Q 0 1 0 0 1"); puts(" 0% 100% 0% 0% 100%"); puts(" 0% 100% 0% 0% 10%"); puts(" Q02:@ 0 0 0 3 3"); puts(" 0% 0% 0% 100% 100%"); puts(" 0% 0% 0% 100% 30%"); puts(" TOTAL 3 1 3 3 10"); puts(" 30% 10% 30% 30% 100%"); puts(" 100% 100% 100% 100% 100%"); puts(""); whil |
TO ADMINS : I think there's a problem with test cases or checker :( | I have answers to all your questions :) | 1187. Statistical Trouble | 7 мар 2002 16:34 | 1 |
|
TO ADMINS : I think there's a problem with test cases or checker :( | I have answers to all your questions :) | 1187. Statistical Trouble | 7 мар 2002 16:34 | 1 |
|
TO ADMINS : I think there's a problem with test cases or checker :( | I have answers to all your questions :) | 1187. Statistical Trouble | 7 мар 2002 16:34 | 1 |
|
TO ADMINS : I think there's a problem with test cases or checker :( | I have answers to all your questions :) | 1187. Statistical Trouble | 7 мар 2002 16:34 | 1 |
|
TO ADMINS : I think there's a problem with test cases or checker :( | I have answers to all your questions :) | 1187. Statistical Trouble | 7 мар 2002 16:34 | 1 |
|
TO ADMINS : I think there's a problem with test cases or checker :( | I have answers to all your questions :) | 1187. Statistical Trouble | 7 мар 2002 16:34 | 1 |
|
TO ADMINS : I think there's a problem with test cases or checker :( | I have answers to all your questions :) | 1187. Statistical Trouble | 7 мар 2002 16:34 | 1 |
|
TO ADMINS : I think there's a problem with test cases or checker :( | I have answers to all your questions :) | 1187. Statistical Trouble | 7 мар 2002 16:33 | 1 |
|
TO ADMINS : I think there's a problem with test cases or checker :( | I have answers to all your questions :) | 1187. Statistical Trouble | 7 мар 2002 16:33 | 1 |
|
TO ADMINS : I think there's a problem with test cases or checker :( | I have answers to all your questions :) | 1187. Statistical Trouble | 7 мар 2002 16:33 | 1 |
|
TO ADMINS : I think there's a problem with test cases or checker :( | I have answers to all your questions :) | 1187. Statistical Trouble | 7 мар 2002 16:33 | 1 |
|
TO ADMINS : I think there's a problem with test cases or checker :( | I have answers to all your questions :) | 1187. Statistical Trouble | 7 мар 2002 16:33 | 1 |
|
TO ADMINS : I think there's a problem with test cases or checker :( | I have answers to all your questions :) | 1187. Statistical Trouble | 7 мар 2002 16:33 | 1 |
|
TO ADMINS : I think there's a problem with test cases or checker :( | I have answers to all your questions :) | 1187. Statistical Trouble | 7 мар 2002 16:33 | 1 |
|
TO ADMINS : I think there's a problem with test cases or checker :( | I have answers to all your questions :) | 1187. Statistical Trouble | 7 мар 2002 16:33 | 1 |
|
TO ADMINS : I think there's a problem with test cases or checker :( | I have answers to all your questions :) | 1187. Statistical Trouble | 7 мар 2002 16:33 | 1 |
|