Codeforces Round 863 (Div. 3)

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
1811 Codeforces Round 863 (Div. 3) FINISHED False 8100 56647463 April 4, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1900 ) F Is It Flower? PROGRAMMING dfs and similar ds graphs implementation

B'Vlad found a flowerbed with graphs in his yard and decided to take one for himself. Later he found out that in addition to the usual graphs, k -flowers also grew on that flowerbed. A graph is called a k -flower if it consists of a simple cycle of length k , through each vertex of which passes its own simple cycle of length k and these cycles do not intersect at the vertices. For example, 3 -flower looks like this: Note that 1 -flower and 2 -flower do not exist, since at least 3 vertices are needed to form a cycle. Vlad really liked the structure of the k -flowers and now he wants to find out if he was lucky to take one of them from the flowerbed. The first line of input contains the single integer t ( 1 <= t <= 10^4 ) -- the number of test cases in the test. The descriptions of the cases follow. An empty string is written before each case. The first line of each case contains two integers n and m ( 2 <= n <= 2 cdot 10^5 , 1 <= m <= min(2 cdot 10^5, frac{n cdot (n-1)}{2}) ) -- the number of vertices and edges in the graph, respectively. The next m lines contain two integers each u and v ( 1 <= u, v <= n , u ne v ) -- numbers of vertices connected by an edge. It is guaranteed that the graph does not contain multiple edges and self-loops. It is guaranteed that the sum of n over all test cases does not exceed 2 cdot 10^5 . It is also guaranteed for the sum of m over all test cases. Output t lines, each of which is the answer to the corresponding test case. As an answer, output "YES" if Vlad 's graph is a k -flower for some k , and "NO" otherwise. You can output the answer in any case (for example, the strings "yEs", "yes", "Yes" and "YES" will be recognized as a positive answer). '...

Tutorials

114788

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
200834789 Tom66 F April 5, 2023, 5:53 a.m. OK GNU C++14 TESTS 58 31 7475200
200827369 UPC.LJW F April 5, 2023, 4:03 a.m. OK GNU C++14 TESTS 58 78 7475200
200817258 Shui_Dream F April 5, 2023, 12:36 a.m. OK GNU C++14 TESTS 58 93 5836800
200832434 kaislash. F April 5, 2023, 5:23 a.m. OK GNU C++14 TESTS 58 124 6144000
200827055 UPC.LJW F April 5, 2023, 3:58 a.m. OK GNU C++14 TESTS 58 124 7065600
200827486 UPC.LJW F April 5, 2023, 4:05 a.m. OK GNU C++14 TESTS 58 124 9011200
200827082 UPC.LJW F April 5, 2023, 3:58 a.m. OK GNU C++14 TESTS 58 139 6144000
200827893 Hritik12 F April 5, 2023, 4:12 a.m. OK GNU C++14 TESTS 58 140 7987200
200827601 UPC.LJW F April 5, 2023, 4:07 a.m. OK GNU C++14 TESTS 58 140 7987200
200828344 Cu_OH_2 F April 5, 2023, 4:20 a.m. OK GNU C++14 TESTS 58 140 8499200
200800882 adamsoltan F April 4, 2023, 7:29 p.m. OK GNU C++17 TESTS 51 109 6348800
200820823 xiaossr F April 5, 2023, 2 a.m. OK GNU C++17 TESTS 58 109 7065600
200781470 gakshat468 F April 4, 2023, 4:51 p.m. OK GNU C++17 TESTS 30 124 6041600
200816242 joaozao F April 5, 2023, 12:08 a.m. OK GNU C++17 TESTS 58 124 6451200
200789168 FzArK F April 4, 2023, 5:44 p.m. OK GNU C++17 TESTS 30 124 7680000
200786895 economist F April 4, 2023, 5:23 p.m. OK GNU C++17 TESTS 30 139 6041600
200794531 samir4ik F April 4, 2023, 6:39 p.m. OK GNU C++17 TESTS 51 139 6451200
200791416 marinareda F April 4, 2023, 6:06 p.m. OK GNU C++17 TESTS 30 139 7680000
200781543 sigma-yyf F April 4, 2023, 4:51 p.m. OK GNU C++17 TESTS 30 139 7680000
200825984 letsintegreat F April 5, 2023, 3:39 a.m. OK GNU C++17 TESTS 58 139 7884800
200834027 Tom66 F April 5, 2023, 5:43 a.m. OK GNU C++17 (64) TESTS 58 31 7884800
200833973 Tom66 F April 5, 2023, 5:43 a.m. OK GNU C++17 (64) TESTS 58 93 7782400
200816712 kevinyang F April 5, 2023, 12:21 a.m. OK GNU C++17 (64) TESTS 58 108 14848000
200798132 T0uRistq F April 4, 2023, 6:57 p.m. OK GNU C++17 (64) TESTS 51 109 8908800
200811878 birka0 F April 4, 2023, 10:16 p.m. OK GNU C++17 (64) TESTS 51 124 8908800
200788394 HCPS42 F April 4, 2023, 5:37 p.m. OK GNU C++17 (64) TESTS 30 124 13721600
200834831 gqf123 F April 5, 2023, 5:54 a.m. OK GNU C++17 (64) TESTS 58 139 9932800
200829458 LeonardSchulman F April 5, 2023, 4:39 a.m. OK GNU C++17 (64) TESTS 58 140 9728000
200783997 lgkm39 F April 4, 2023, 5:03 p.m. OK GNU C++17 (64) TESTS 30 140 9728000
200789927 logic_overfl0w F April 4, 2023, 5:51 p.m. OK GNU C++17 (64) TESTS 30 140 12492800
200833898 scanner F April 5, 2023, 5:42 a.m. OK GNU C++20 (64) TESTS 58 78 4812800
200820783 mddddddd F April 5, 2023, 1:59 a.m. OK GNU C++20 (64) TESTS 58 78 7680000
200788228 magnus.hegdahl F April 4, 2023, 5:35 p.m. OK GNU C++20 (64) TESTS 30 78 7987200
200824563 kexyfather F April 5, 2023, 3:13 a.m. OK GNU C++20 (64) TESTS 58 93 8908800
200812283 5hu8h F April 4, 2023, 10:25 p.m. OK GNU C++20 (64) TESTS 51 93 8908800
200794418 KasodaniKyouko F April 4, 2023, 6:37 p.m. OK GNU C++20 (64) TESTS 51 93 9728000
200800138 Marckess F April 4, 2023, 7:20 p.m. OK GNU C++20 (64) TESTS 51 93 11059200
200822647 PanC_ake F April 5, 2023, 2:39 a.m. OK GNU C++20 (64) TESTS 58 93 22937600
200789476 vgtcross F April 4, 2023, 5:46 p.m. OK GNU C++20 (64) TESTS 30 108 9011200
200825923 JimmyLI F April 5, 2023, 3:38 a.m. OK GNU C++20 (64) TESTS 58 108 9728000
200814634 v13 F April 4, 2023, 11:25 p.m. OK Go TESTS 58 234 23756800
200804983 TCchen F April 4, 2023, 8:23 p.m. OK Java 17 TESTS 51 374 716800
200809299 UniversalAdmin F April 4, 2023, 9:25 p.m. OK Java 8 TESTS 51 499 34201600
200786365 FlakeLCR F April 4, 2023, 5:19 p.m. OK PyPy 3-64 TESTS 30 264 43724800
200822759 ZrjaK F April 5, 2023, 2:41 a.m. OK PyPy 3-64 TESTS 58 405 35942400
200777998 Peacalm F April 4, 2023, 4:44 p.m. OK PyPy 3-64 TESTS 30 451 31539200
200789725 FreeYourMind F April 4, 2023, 5:49 p.m. OK PyPy 3-64 TESTS 30 560 37376000
200830901 hxu10 F April 5, 2023, 5:01 a.m. OK PyPy 3-64 TESTS 58 623 55910400
200809248 titia F April 4, 2023, 9:24 p.m. OK PyPy 3-64 TESTS 51 654 66867200
200830953 Ye_Che F April 5, 2023, 5:02 a.m. OK PyPy 3-64 TESTS 58 1481 44748800
200786201 Aditya_Pote F April 4, 2023, 5:18 p.m. OK PyPy 3-64 TESTS 30 1606 68505600
200809229 haihamabossu F April 4, 2023, 9:24 p.m. OK Rust 2021 TESTS 51 124 27443200
200779853 robostac F April 4, 2023, 4:47 p.m. OK Rust 2021 TESTS 30 156 30924800

remove filters

Back to search problems