Nebius Round 2 (Codeforces Round 1088, Div. 1 + Div. 2)

Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.

ContestId
Name
Phase
Frozen
Duration (Seconds)
Relative Time
Start Time
2211 Nebius Round 2 (Codeforces Round 1088, Div. 1 + Div. 2) FINISHED False 9000 1696523 March 28, 2026, 2:45 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 807 ) E Minimum Path Cover PROGRAMMING dp interactive number theory trees

This is an interactive problem. Given a rooted tree(^{\text{∗}}) (T) of size (m), where each node (i) has an associated value (a_i), define a vertical path as a sequence of nodes (s_1,s_2,\ldots,s_p) such that (s_{i+1}) is a child of (s_i) for all (1 \leq i \lt p). A vertical path is good if (\operatorname{gcd}(a_{s_1},a_{s_2},\ldots,a_{s_p}) \neq 1)(^{\text{†}}). Define (f(T)) as the minimum number of good vertical paths such that every node is in exactly one good path. There is a strange rooted tree of (n) nodes, where node (1) is the root. The tree satisfies the property that each node only has children with labels greater than itself. Denote (S(u)) as the subtree of node (u). That is, (S(u)) contains all nodes (v) such that the shortest path from node (1) to node (v) contains node (u), and all edges where both endpoints are between two such nodes. You are interested in finding (f(S(n)), f(S(n-1)), \ldots, f(S(1))). However, there is a magical oracle that is hiding information about the tree from you! Specifically, the oracle only tells you information about vertex (x) after reading your result of (f(S(x+1))). In other words, you must solve this problem online, starting from node (n) and ending at node (1). (^{\text{∗}})A tree is a connected graph without cycles. A rooted tree is a tree where one vertex is special and called the root. The parent of vertex (v) is the first vertex on the simple path from (v) to the root. The root has no parent. A child of vertex (v) is any vertex (u) for which (v) is the parent. (^{\text{†}})Here, (\gcd(x, y)) denotes the greatest common divisor (GCD) of integers (x) and (y). Each test contains multiple test cases. The first line contains the number of test cases (t) ((1 \le t \le 10^4)). The description of the test cases follows. The first line of each test case contain

Tutorials

Nebius Round 2 and Codeforces Round 1088 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
368592979 kidla E March 28, 2026, 5:08 p.m. OK C# 10 TESTS 40 984 22118400
368586763 PlayVoltz E March 28, 2026, 4:48 p.m. OK C++17 (GCC 7-32) TESTS 40 703 102400
368630698 bubbarob19 E March 29, 2026, 5:20 a.m. OK C++17 (GCC 7-32) TESTS 41 765 102400
368615056 1hosni_belfeki1 E March 28, 2026, 10:51 p.m. OK C++17 (GCC 7-32) TESTS 41 796 102400
368614648 niyu E March 28, 2026, 10:38 p.m. OK C++17 (GCC 7-32) TESTS 41 828 1024000
368601384 More E March 28, 2026, 6:46 p.m. OK C++17 (GCC 7-32) TESTS 40 828 4096000
368590102 0x0c5cbae8 E March 28, 2026, 4:59 p.m. OK C++17 (GCC 7-32) TESTS 40 843 102400
368628739 kevinyu E March 29, 2026, 4:55 a.m. OK C++17 (GCC 7-32) TESTS 41 843 2457600
368592231 Kartik_001 E March 28, 2026, 5:06 p.m. OK C++17 (GCC 7-32) TESTS 40 843 6758400
368619718 Scalm E March 29, 2026, 1:43 a.m. OK C++17 (GCC 7-32) TESTS 41 859 102400
368586102 SHARHOOD E March 28, 2026, 4:46 p.m. OK C++17 (GCC 7-32) TESTS 40 859 102400
368601801 islingr E March 28, 2026, 6:50 p.m. OK C++20 (GCC 13-64) TESTS 40 609 921600
368616865 love_seeker E March 28, 2026, 11:58 p.m. OK C++20 (GCC 13-64) TESTS 41 625 102400
368611454 DylanSmith E March 28, 2026, 9:14 p.m. OK C++20 (GCC 13-64) TESTS 41 625 102400
368601084 VladProg E March 28, 2026, 6:44 p.m. OK C++20 (GCC 13-64) TESTS 40 625 3276800
368633246 gevak E March 29, 2026, 5:48 a.m. OK C++20 (GCC 13-64) TESTS 41 625 16076800
368608156 nishkarsh E March 28, 2026, 8:12 p.m. OK C++20 (GCC 13-64) TESTS 40 640 102400
368609405 TheTitan008 E March 28, 2026, 8:34 p.m. OK C++20 (GCC 13-64) TESTS 40 640 921600
368619908 Ivan_len E March 29, 2026, 1:48 a.m. OK C++20 (GCC 13-64) TESTS 41 656 102400
368590151 Rodger2041 E March 28, 2026, 4:59 p.m. OK C++20 (GCC 13-64) TESTS 40 656 1024000
368600857 79brue E March 28, 2026, 6:42 p.m. OK C++20 (GCC 13-64) TESTS 40 656 4096000
368620777 lihaochen E March 29, 2026, 2:12 a.m. OK C++23 (GCC 14-64, msys2) TESTS 41 453 8294400
368600730 andy562.dlg E March 28, 2026, 6:41 p.m. OK C++23 (GCC 14-64, msys2) TESTS 40 546 102400
368593258 Irisqwq E March 28, 2026, 5:09 p.m. OK C++23 (GCC 14-64, msys2) TESTS 40 578 4096000
368620584 GUAIKATTO E March 29, 2026, 2:07 a.m. OK C++23 (GCC 14-64, msys2) TESTS 41 593 102400
368594879 StelIawinD E March 28, 2026, 5:13 p.m. OK C++23 (GCC 14-64, msys2) TESTS 40 609 4915200
368623464 hushuqi_qwq E March 29, 2026, 3:15 a.m. OK C++23 (GCC 14-64, msys2) TESTS 41 609 5836800
368606514 _alt_account_ E March 28, 2026, 7:47 p.m. OK C++23 (GCC 14-64, msys2) TESTS 40 625 102400
368631519 coinunderscore E March 29, 2026, 5:30 a.m. OK C++23 (GCC 14-64, msys2) TESTS 41 625 1024000
368629074 Anemone_ E March 29, 2026, 4:59 a.m. OK C++23 (GCC 14-64, msys2) TESTS 41 625 1126400
368600640 s0905635919 E March 28, 2026, 6:41 p.m. OK C++23 (GCC 14-64, msys2) TESTS 40 625 2662400
368581786 jdltc E March 28, 2026, 4:34 p.m. OK Java 21 TESTS 40 4000 152064000
368601052 titia E March 28, 2026, 6:44 p.m. OK PyPy 3-64 TESTS 40 2625 34611200
368588633 Sacred_Conqurer E March 28, 2026, 4:54 p.m. OK PyPy 3-64 TESTS 40 2750 74547200
368592644 AdTerram E March 28, 2026, 5:07 p.m. OK PyPy 3-64 TESTS 40 3187 94412800
368585218 xxximbj E March 28, 2026, 4:43 p.m. OK Python 3 TESTS 40 2546 27955200

remove filters

Back to search problems