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 1047. Simple Calculations

#WA4
Posted by Alexandr 30 Mar 2022 01:14
I had WA2 with std::cout and round|trunc|floor functions. Then I used printf("%.2f", result) and got WA4. What's going on with output requirements?
Re: #WA4
Posted by Alexandr 30 Mar 2022 01:20
WA2 and WA4 happened when I used int64_t as type for main calculations. Then I changed to double and passed tests. ?!?!