imesecan | July.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
|
imesecan | Nov.15.2015 at 03:04:37 PM | |
1 | Test 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
|
imesecan | Nov.23.2015 at 11:43:17 AM | |
2 | If you want to show with 3 digits precision in c++ you can use: cout.precision(3); cout<<fixed<<sum<<endl;
|