ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1348. Goat in the Garden 2

hint for c++ for those who got wa
Posted by TwoEightNine [146110Butorov] 19 Sep 2014 09:21
you need to write answer with two digits after point, so don't use cout!
use printf("%.2f\n",  );
and don't forget #include <cstdio>

i've been finding this mistake for 2 days!!
Re: hint for c++ for those who got wa
Posted by krithic 4 Jun 2015 00:19
or u can use
cout<<setprecision(2)<<fixed<<;