ENG
RUS
Timus 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
1276
. Train
Math
Posted by
lilipottter
9 Sep 2020 03:01
It is said "Tags: dynamic programming"
But also there is math approach. In this case solution is simple math formula kind of \sum\sum C(x,y)*C(t,m). Complexity is O(n^2).
Good luck.
© 2000–2024
Timus Online Judge Team
. All rights reserved.