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
1119
. Metro
memory O(K*ln(K)) speed O(K*polinom(ln(K))) assume 0<=K<=M*N and 0<=M,N
Posted by
Dmi3Molodov
22 Nov 2024 01:50
Is it possible to do better?
Sorry!
speed O(max(K,N+M)*polinom(ln(K)))
memory O(max(K*ln(K),ln(N),ln(M)))
Edited by author 22.11.2024 02:19
© 2000–2024
Timus Online Judge Team
. All rights reserved.