Codeforces Round 1033 (Div. 2) and CodeNite 2025

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
2120 Codeforces Round 1033 (Div. 2) and CodeNite 2025 FINISHED False 7200 25889123 June 21, 2025, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 107 ) G Eulerian Line Graph PROGRAMMING graphs greedy math

Aryan loves graph theory more than anything. Well, no, he likes to flex his research paper on line graphs to everyone more. To start a conversation with you, he decides to give you a problem on line graphs. In the mathematical discipline of graph theory, the line graph of a simple undirected graph (G) is another simple undirected graph (L(G)) that represents the adjacency between every two edges in (G). Precisely speaking, for an undirected graph (G) without self-loops or multiple edges, its line graph (L(G)) is a graph such that Each vertex of (L(G)) represents an edge of (G). Two vertices of (L(G)) are adjacent if and only if their corresponding edges share a common endpoint in (G). Also, (L^0(G)=G) and (L^k(G)=L(L^{k-1}(G))) for (k\geq 1). An Euler trail is a sequence of edges that visits every edge of the graph exactly once. This trail can be either a path (starting and ending at different vertices) or a cycle (starting and ending at the same vertex). Vertices may be revisited during the trail, but each edge must be used exactly once. Aryan gives you a simple connected graph (G) with (n) vertices and (m) edges and an integer (k), and it is guaranteed that (G) has an Euler trail and it is not a path graph(^{\text{∗}}). He asks you to determine if (L^k(G)) has an Euler trail. (^{\text{∗}})A path graph is a tree where every vertex is connected to atmost two other vertices. 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 contains three space-separated integers (n), (m), and (k) ((5 \le n \le 2 \cdot 10^5), (n-1 \le m \le \min(\frac{n\cdot(n-1)}{2} ,2 \cdot 10^5)), (1 \le k \le 2 \cdot 10^5)). The next (m) lines of each test case contain two space-separated integers (u) and (v) ($$$1 \le u,v \le

Tutorials

Codeforces Round 1033 (Div. 2) and CodeNite 2025 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
325497332 OxDPillai G June 22, 2025, 1:50 a.m. OK C++17 (GCC 7-32) TESTS 58 187 7372800
325503276 kuticpcer G June 22, 2025, 3:38 a.m. OK C++20 (GCC 13-64) TESTS 58 155 4710400
325501891 Tobo G June 22, 2025, 3:12 a.m. OK C++20 (GCC 13-64) TESTS 58 155 5529600
325503385 kuticpcer G June 22, 2025, 3:40 a.m. OK C++20 (GCC 13-64) TESTS 58 171 4812800
325504358 Ronaldo_siuuuu G June 22, 2025, 3:56 a.m. OK C++20 (GCC 13-64) TESTS 58 171 4915200
325485723 StarSilk G June 21, 2025, 5:19 p.m. OK C++20 (GCC 13-64) TESTS 58 171 5632000
325499218 kuticpcer G June 22, 2025, 2:26 a.m. OK C++20 (GCC 13-64) TESTS 58 171 7270400
325471858 lunchbox G June 21, 2025, 4:11 p.m. OK C++20 (GCC 13-64) TESTS 58 202 6348800
325501678 le0n G June 22, 2025, 3:08 a.m. OK C++20 (GCC 13-64) TESTS 58 265 8908800
325485147 2ky G June 21, 2025, 5:16 p.m. OK C++20 (GCC 13-64) TESTS 58 312 38092800
325493041 244mhq G June 21, 2025, 6:14 p.m. OK C++23 (GCC 14-64, msys2) TESTS 58 156 9216000
325507017 Benq G June 22, 2025, 4:43 a.m. OK C++23 (GCC 14-64, msys2) TESTS 58 171 7065600
325469551 peti1234 G June 21, 2025, 4:05 p.m. OK C++23 (GCC 14-64, msys2) TESTS 58 171 18124800
325505309 qwerasdfzxcl G June 22, 2025, 4:13 a.m. OK C++23 (GCC 14-64, msys2) TESTS 58 249 7270400
325506134 qwerasdfzxcl G June 22, 2025, 4:27 a.m. OK C++23 (GCC 14-64, msys2) TESTS 58 265 7270400
325505572 qwerasdfzxcl G June 22, 2025, 4:18 a.m. OK C++23 (GCC 14-64, msys2) TESTS 58 265 7270400
325488450 rainboy G June 21, 2025, 5:37 p.m. OK GNU C11 TESTS 58 171 5017600
325490506 cyclop5 G June 21, 2025, 5:53 p.m. OK Go TESTS 58 93 15872000
325498379 golomb G June 22, 2025, 2:15 a.m. OK PyPy 3-64 TESTS 58 671 47308800
325499358 arvindk0025 G June 22, 2025, 2:27 a.m. OK Python 3 TESTS 58 389 36556800
325497010 MinhQuangCVP G June 22, 2025, 1:38 a.m. OK Python 3 TESTS 58 389 36556800

remove filters

Back to search problems