https://www.codechef.com/viewsolution/35542698
now that the LONG Challenge has completed , may i request problem setters or anyone to please provide me with the test cases where i am getting wa(5 out of 11) ?
Thank you.
https://www.codechef.com/viewsolution/35542698
now that the LONG Challenge has completed , may i request problem setters or anyone to please provide me with the test cases where i am getting wa(5 out of 11) ?
Thank you.
This one goes wrong:
1
10 1
10 82 20 37 33 56 95 5 80 70
Thanks .
i couldn’t produce any such case in one whole day.
I think my mistake is in the 5 value.
Try:
1
2 10
9 27
Ans: 3
this one correct bro.
my code is also producing 3.
@taipon12 Your AC soln: CodeChef: Practical coding for everyone
You are messing up with divisions like in below:
access denied bro ! 
https://www.codechef.com/viewsolution/35468709
I am also getting 2 wrong answer for my solution can anyone help…??
Thanks alot bro.
i am just not getting it clear as how can we get x=2*a[i] for next country,even for odd values of a[i].
please explain briefly in this tc
1
2 3
9 20
Day - 1
Use 3 vaccines to cure 3 people of country2 (20 infected)
new vaccine count → 3*2 = 6
Day -2
No. of infected people in country2 again becomes 20
Use 6 vaccines to cure 6 people of country2 (20 infected)
new vaccine count → 6*2 = 12
Day-3
Use 12 vaccines to cure-all the people of country1 (9 infected)
new vaccine count → 9*2 = 18
Day-4
By this time the no. of infected people in country2 again becomes 20
Use 18 vaccines to cure 18 people of country2 (20 infected)
new vaccine count → 18*2 = 36
Day-5
No. of infected people in country2 → 2*2 = 4
Use 36 vaccines to cure-all people of country2 (4 infected)
Ans → It took 5 days to cure all