If 5*round(100/6) was the way to compute the result, then the entire
problem would be trivial, since the answer would always be n*round(100/n),
regardless of how the voters chose results.
You want round(5*100/6). Compute the percentage 5*100/6 = 83.333...% and
then round it to an integer number
Thanks a lot sir,5*round(100/6) is not valid?,in case1 it is
On Wed, May 2, 2018, 17:39 Joseph DeVincentis wrote:
> No. If five people choose one language and one chooses another, than the
> language with 5 people represents 5/6 = 83.33...% and you get 83 + 17 = 100.
> If six
No. If five people choose one language and one chooses another, than the
language with 5 people represents 5/6 = 83.33...% and you get 83 + 17 = 100.
If six people all chose different languages then each of six languages
would have 17% and the total would be 102, but that option is not available
In Sample Case #3, one optimal scenario is as follows: each of the
remaining two people chooses an unchosen language, so the rounded
percentages add up to 50 + 17 + 17 + 17 = 101.
if 5 people chooses same language and one person chooses different one
then the result=102
5*17+17=102
Regards
In Sample Case #3, one optimal scenario is as follows: each of the
remaining two people chooses an unchosen language, so the rounded
percentages add up to 50 + 17 + 17 + 17 = 101.
if 5 people chooses same language and one person chooses different one
then the result=102
Regards
Samuel
On Wed,
Hello Sir,
Rounding Error:-
My understanding is we need to maximize the sum of n values of 100/n,if it
is below 100%
please let me know ,my understanding is correct or not
Regards
Samuel
On Mon, Apr 30, 2018 at 8:33 AM, Si wrote:
> Hi, I think I test all the cases but I