Скоро Codeforces Round 1133 (Div. 1, Div. 2)! Регистрация здесь. ×

Is there any general algorithm?

Правка en2, от i_love_sqrt_decomp, 2025-05-05 12:48:12

Is there an algorithm that solves this problem for any $$$k$$$? https://codeforces.me/problemset/gymProblem/101806/X.

Any complexity is allowed, if it solves the problem for $$$k\leq5$$$ with the original constraints.

Spoiler

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский i_love_sqrt_decomp 2025-05-05 12:48:24 5 Tiny change: 'g at most O(m) iteration' -> 'g at most $m$ iteration'
en2 Английский i_love_sqrt_decomp 2025-05-05 12:48:12 32 Tiny change: 'th problem, which is' -> 'th problem using at most O(m) iterations, which is'
en1 Английский i_love_sqrt_decomp 2025-05-05 12:45:19 391 Initial revision (published)