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 1575. Yekaterinburg Subway 2

Just Precalculate ;D
Posted by GastonFontenla 25 Aug 2015 11:01
You can precalculate all the results in a char matrix (c++), occupies less than int. With the given memory contraints, you can doit like that.