HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Forums > Discussion of problems > topic:


Problem "50394 - Water Bills"

There is a contest!

В настоящий момент идёт турнир. Некоторая информация и функции сервера недоступны до его окончания.

imesecanJuly.16.2015 at 12:28:27 PM
0--- Test Case 1 ---
20
4289
6220
3878
6676
4036
3257
6399
6666
5732
3095
4010
6874
3808
6233
4541
6066
3108
5422
5214
6834

--- Pattern ---
326.06

imesecanNov.15.2015 at 03:04:37 PM
1Test Case 5: Usual error is because of float/double precision.
Float has less precision
Use double for more precise results.

Test Case 5:
--- usual result ---
1844433.250

---- Expected pattern ----
1844437.03

imesecanNov.23.2015 at 11:43:17 AM
2If you want to show with 3 digits precision in c++ you can use:
cout.precision(3);
cout<<fixed<<sum<<endl;


www.contester.ru