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 2120. Tree Average Weight

Advice if you're getting WA
Posted by Md sabbir Rahman 12 Apr 2020 21:24
Putting the intermediary values in long double won't work, At least I couldn't get them to work.
Putting them in long long and dividing at the end also won't work.
You'll have to do something between these two ( ͡° ͜ʖ ͡°)