Codeforces Round 1061 (Div. 2) Editorial

Revision en1, by MathModel, 2025-10-24 19:35:25

Thank you for participating !

Special Thanks to hxu10 for giving me the chance to write the editorial and for maomao90 for enhancing the editorial !.

Editorial of Problems E,F1 are written by hxu10 the rest are by me, I hope they're insightful and concise , please let me hear your opinion about it or any feedback in general 💙.

A. Pizza Time

Hints
Solution
Implementation 1 (MathModel)
Solution 2
Implementation 2 (MathModel)
Rate The Problem !

B. Strange Machine

Hints
Solution 1 : O(nq log A)
Bonus Hints

Solution 2 (Bonus) : O(n+qlog^2 A
Implementation 1 (MathModel)
Implementation 2 (MathModel)
Rate The Problem !

C. Maximum GCD on Whiteboard

Hints
Solution
Implementation (MathModel)
Rate The Problem !

D. Find the Last Number

Hints
Solution
Implementation (hxu10)
Rate The Problem !

E. Best time to buy and sell stock

Hints
Solution
Implementation (hxu,PyPy)
Implementation (maomao90,C++)
Rate The Problem !

F1. Strange Operation (Easy)

hxu10's Solution
Tester's Solution
MathModel's Solution (Bonus/Challenge)
Rate The Problem !

F2. Strange Operation (Hard)

Hints
Solution
Implementation (hxu10,PyPy)
Rate The Problem !

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en15 English maomao90 2025-10-24 20:09:29 1196
en14 English maomao90 2025-10-24 20:08:40 16 Tiny change: 'iler>\n\n<details>\n \n\n<spoil' -> 'iler>\n\n<spoil'
en13 English MathModel 2025-10-24 20:04:48 0 (published)
en12 English maomao90 2025-10-24 20:01:41 10
en11 English maomao90 2025-10-24 20:00:21 20
en10 English maomao90 2025-10-24 19:56:42 2 Tiny change: 'ase are:\n- all mu' -> 'ase are:\n\n- all mu'
en9 English maomao90 2025-10-24 19:54:35 34 Tiny change: '}(n^2)$.\n \n<br>\n\n**Chal' -> '}(n^2)$.\n\n**Chal'
en8 English maomao90 2025-10-24 19:52:20 474
en7 English maomao90 2025-10-24 19:45:19 11
en6 English MathModel 2025-10-24 19:43:45 6 Tiny change: 'ved, set $\left (ip)_{p_i}' -> 'ved, set $(ip)_{p_i}'
en5 English MathModel 2025-10-24 19:43:14 108
en4 English MathModel 2025-10-24 19:39:24 1 Tiny change: 'n+qlog^2 A">\n \n' -> 'n+qlog^2 A)">\n \n'
en3 English MathModel 2025-10-24 19:39:04 429
en2 English maomao90 2025-10-24 19:37:05 80
en1 English MathModel 2025-10-24 19:35:25 49094 Initial revision (saved to drafts)