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 1402. Cocktails

for anyone who has WA#13
Posted by Najmaddin Akhundov 21 Nov 2014 06:24
use "long double"
and to avoid rounding when you print the result, use
cout << fixed <<setprecision(0)<< result << endl;
Re: for anyone who has WA#13
Posted by jim 5 Jul 2018 08:15
thank you very much!
Re: for anyone who has WA#13
Posted by Khujamurod Murtozakulov (Tashkent U of IT) 11 Dec 2018 11:31
Can you explain us why long double accepted and why double get WA13 ?