Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

What is wrong in question GOHAN (NSIT_Div2)

$
0
0

Question GOHAN

Contest - NSIT(Div 2) rated contest.

What is the need of "fixed" for printing the final answer in this question?

cout<<setprecision(10)<<1-rrc/(4*l); has not been passed.

But,

cout<<fixed<<setprecision(10)<<1-rrc/(4*l); is passed.

Can anyone explain the importance of fixed? Thank you.


Viewing all articles
Browse latest Browse all 39796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>