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 2093. All Roads Lead to Snowdrift

if you have wa5
Posted by Celebrate 16 Oct 2021 05:57
the reason is min(ti+(ti*T+99)/100,100500*ti) can overflow.
So you are supposed to change long long into unsigned long long,then you'll get AC.