Xclusive_OR's blog

By Xclusive_OR, history, 2 months ago, In English

https://codeforces.com/edu/course/2/lesson/6/2/practice/contest/283932/problem/B

I was trying to solve this problem but I am getting wrong answer on test case 9 which I am unable to correct , please help,

here is my code link :

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

»
2 months ago, # |
  Vote: I like it 0 Vote: I do not like it

cout<<fixed<<ans; I also made this mistake when i first started :)

»
2 months ago, # |
  Vote: I like it 0 Vote: I do not like it

use cout << setprecision(15) << l;