Confusion in B problem of Codeforces educational round #103

Revision en1, by Aryan., 2021-01-30 14:01:40

Hello friends, I have a doubt in question B)Inflation from Codeforces Educational Round #103 (Div. 2). Question link — https://codeforces.net/contest/1476/problem/B My Solution — https://codeforces.net/contest/1476/submission/106011277

After trying it 13 times I am not able to understand what is wrong in my code which is giving wrong answer with test 4.

I shall be thankful if someone helps me in this.

Tags #math, #greedy, #long double

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Aryan. 2021-01-30 14:01:40 479 Initial revision (published)