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 |
---|---|---|---|---|---|---|
1829 | Codeforces Round 871 (Div. 4) | FINISHED | False | 8100 | 53882663 | May 6, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 18462 ) | F | Forever Winter | PROGRAMMING | dfs and similar graphs math | 1300 |
B'A snowflake graph is generated from two integers x and y , both greater than 1 , as follows: The snowflake graph above has a central vertex 15 , then x=5 vertices attached to it ( 3 , 6 , 7 , 8 , and 20 ), and then y=3 vertices attached to each of those. The first line contains a single integer t ( 1 <= q t <= q 1000 ) -- the number of test cases. The first line of each test case contains two integers n and m ( 2 <= q n <= q 200 ; 1 <= q m <= q min <= ft(1000, frac{n(n-1)}{2} right) ) -- the number of vertices and edges in the graph, respectively. The next m lines each contain two integers each u and v ( 1 <= q u, v <= q n , u neq v ) -- the numbers of vertices connected by an edge. The graph does not contain multiple edges and self-loops. It is guaranteed that this graph is a snowflake graph for some integers x and y both greater than 1 . For each test case, on a separate line output the values of x and y , in that order, separated by a space. The first test case is pictured in the statement. Note that the output 3 5 is incorrect, since x should be output before y . '... |
Codeforces Round 871 (Div. 4) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
205668637 | 2000031101_Satwika | F | May 13, 2023, 4:39 a.m. | OK | Clang++17 Diagnostics | TESTS | 11 | 1185 | 102400 | 1300 | |
205744998 | bkifhr8 | F | May 13, 2023, 4:57 p.m. | OK | Clang++17 Diagnostics | TESTS | 11 | 1591 | 16793600 | 1300 | |
205743238 | vjudge5 | F | May 13, 2023, 4:41 p.m. | OK | Clang++17 Diagnostics | TESTS | 11 | 1606 | 16793600 | 1300 | |
205744830 | vjudge5 | F | May 13, 2023, 4:55 p.m. | OK | Clang++17 Diagnostics | TESTS | 11 | 1622 | 16793600 | 1300 | |
205683913 | vjudge2 | F | May 13, 2023, 7:13 a.m. | OK | Clang++20 Diagnostics | TESTS | 11 | 1185 | 102400 | 1300 | |
205782119 | lream2 | F | May 14, 2023, 4:21 a.m. | OK | GNU C11 | TESTS | 11 | 46 | 0 | 1300 | |
206215487 | c20231020__ | F | May 17, 2023, 1:20 p.m. | OK | GNU C++14 | TESTS | 11 | 30 | 10342400 | 1300 | |
205747998 | RnMnBtTime | F | May 13, 2023, 5:27 p.m. | OK | GNU C++14 | TESTS | 11 | 46 | 102400 | 1300 | |
205914430 | Amireza | F | May 14, 2023, 7:02 p.m. | OK | GNU C++14 | TESTS | 11 | 46 | 307200 | 1300 | |
206216107 | luogu_bot5 | F | May 17, 2023, 1:25 p.m. | OK | GNU C++14 | TESTS | 11 | 61 | 307200 | 1300 | |
206035334 | Ferb97 | F | May 15, 2023, 11:53 p.m. | OK | GNU C++14 | TESTS | 11 | 62 | 0 | 1300 | |
206330430 | figure_yang | F | May 18, 2023, 11:11 a.m. | OK | GNU C++14 | TESTS | 11 | 62 | 0 | 1300 | |
205570764 | 218r1a0545 | F | May 12, 2023, 2:58 p.m. | OK | GNU C++14 | TESTS | 11 | 62 | 102400 | 1300 | |
205634804 | doitwithcod3 | F | May 12, 2023, 6:32 p.m. | OK | GNU C++14 | TESTS | 11 | 62 | 204800 | 1300 | |
206353677 | 201929 | F | May 18, 2023, 2:40 p.m. | OK | GNU C++14 | TESTS | 11 | 62 | 307200 | 1300 | |
206303826 | green_and_blue | F | May 18, 2023, 6:29 a.m. | OK | GNU C++14 | TESTS | 11 | 62 | 409600 | 1300 | |
206334527 | Jatin147 | F | May 18, 2023, 11:47 a.m. | OK | GNU C++17 | TESTS | 11 | 46 | 102400 | 1300 | |
205988146 | saurabh_12_IITI | F | May 15, 2023, 1:25 p.m. | OK | GNU C++17 | TESTS | 11 | 46 | 102400 | 1300 | |
205955640 | Greninja17 | F | May 15, 2023, 8:10 a.m. | OK | GNU C++17 | TESTS | 11 | 46 | 102400 | 1300 | |
206355820 | kishansinh | F | May 18, 2023, 3 p.m. | OK | GNU C++17 | TESTS | 11 | 46 | 102400 | 1300 | |
206424171 | Taekki | F | May 19, 2023, 8:53 a.m. | OK | GNU C++17 | TESTS | 11 | 46 | 204800 | 1300 | |
206322538 | Romyshka1 | F | May 18, 2023, 9:53 a.m. | OK | GNU C++17 | TESTS | 11 | 46 | 204800 | 1300 | |
205788543 | riglaskaren | F | May 14, 2023, 5:53 a.m. | OK | GNU C++17 | TESTS | 11 | 46 | 204800 | 1300 | |
206431671 | xuhe | F | May 19, 2023, 10:05 a.m. | OK | GNU C++17 | TESTS | 11 | 46 | 204800 | 1300 | |
206086367 | Turing_Sheep | F | May 16, 2023, 12:29 p.m. | OK | GNU C++17 | TESTS | 11 | 46 | 307200 | 1300 | |
206224235 | MoeHammoud | F | May 17, 2023, 2:42 p.m. | OK | GNU C++17 | TESTS | 11 | 46 | 12185600 | 1300 | |
206035048 | OTTFF | F | May 15, 2023, 11:38 p.m. | OK | GNU C++17 (64) | TESTS | 11 | 31 | 102400 | 1300 | |
205785941 | Fallen49 | F | May 14, 2023, 5:21 a.m. | OK | GNU C++17 (64) | TESTS | 11 | 31 | 102400 | 1300 | |
206296896 | Wmic. | F | May 18, 2023, 4:42 a.m. | OK | GNU C++17 (64) | TESTS | 11 | 46 | 0 | 1300 | |
205738374 | Once_I_Liked_AGirl | F | May 13, 2023, 3:51 p.m. | OK | GNU C++17 (64) | TESTS | 11 | 46 | 0 | 1300 | |
206319337 | jilowa4321 | F | May 18, 2023, 9:20 a.m. | OK | GNU C++17 (64) | TESTS | 11 | 46 | 0 | 1300 | |
205727424 | HKing147 | F | May 13, 2023, 2:06 p.m. | OK | GNU C++17 (64) | TESTS | 11 | 46 | 0 | 1300 | |
206321284 | ykodwani01 | F | May 18, 2023, 9:40 a.m. | OK | GNU C++17 (64) | TESTS | 11 | 46 | 0 | 1300 | |
205635844 | Leen_awad | F | May 12, 2023, 6:41 p.m. | OK | GNU C++17 (64) | TESTS | 11 | 46 | 0 | 1300 | |
206079263 | bkifhr6 | F | May 16, 2023, 11:24 a.m. | OK | GNU C++17 (64) | TESTS | 11 | 46 | 0 | 1300 | |
206381092 | mircea_007 | F | May 18, 2023, 7:25 p.m. | OK | GNU C++17 (64) | TESTS | 11 | 46 | 102400 | 1300 | |
206212725 | c1120231020 | F | May 17, 2023, 12:56 p.m. | OK | GNU C++20 (64) | TESTS | 11 | 30 | 16281600 | 1300 | |
205541191 | _Flipped_ | F | May 12, 2023, 1:24 p.m. | OK | GNU C++20 (64) | TESTS | 11 | 31 | 0 | 1300 | |
206383252 | amans07 | F | May 18, 2023, 7:55 p.m. | OK | GNU C++20 (64) | TESTS | 11 | 31 | 0 | 1300 | |
205834644 | bkifhr8 | F | May 14, 2023, 1:02 p.m. | OK | GNU C++20 (64) | TESTS | 11 | 31 | 0 | 1300 | |
205630136 | Enygmatic | F | May 12, 2023, 5:52 p.m. | OK | GNU C++20 (64) | TESTS | 11 | 31 | 0 | 1300 | |
205540825 | _Flipped_ | F | May 12, 2023, 1:21 p.m. | OK | GNU C++20 (64) | TESTS | 11 | 31 | 0 | 1300 | |
205932659 | Porag_2742 | F | May 15, 2023, 1:48 a.m. | OK | GNU C++20 (64) | TESTS | 11 | 31 | 102400 | 1300 | |
205927764 | juniorcompressor | F | May 14, 2023, 10:53 p.m. | OK | GNU C++20 (64) | TESTS | 11 | 31 | 102400 | 1300 | |
205726234 | Daveeed | F | May 13, 2023, 1:53 p.m. | OK | GNU C++20 (64) | TESTS | 11 | 31 | 102400 | 1300 | |
206000163 | Mangra | F | May 15, 2023, 3:02 p.m. | OK | GNU C++20 (64) | TESTS | 11 | 31 | 102400 | 1300 | |
206343354 | cp_hunterx | F | May 18, 2023, 1:09 p.m. | OK | Go | TESTS | 11 | 171 | 5017600 | 1300 | |
205828781 | Anuj4072 | F | May 14, 2023, noon | OK | Java 11 | TESTS | 11 | 187 | 0 | 1300 | |
206255693 | vishal_sahu | F | May 17, 2023, 5:28 p.m. | OK | Java 11 | TESTS | 11 | 233 | 0 | 1300 | |
206451629 | kocko | F | May 19, 2023, 1:29 p.m. | OK | Java 11 | TESTS | 11 | 249 | 0 | 1300 | |
206441635 | Jagnath_Reddy | F | May 19, 2023, 11:51 a.m. | OK | Java 11 | TESTS | 11 | 296 | 0 | 1300 | |
205656560 | phamphuchau | F | May 13, 2023, 12:54 a.m. | OK | Java 11 | TESTS | 11 | 560 | 204800 | 1300 | |
205692770 | autra_weiliu | F | May 13, 2023, 8:34 a.m. | OK | Java 11 | TESTS | 11 | 561 | 0 | 1300 | |
205630304 | tryxl | F | May 12, 2023, 5:54 p.m. | OK | Java 11 | TESTS | 11 | 607 | 409600 | 1300 | |
206272485 | Vrutik_2809 | F | May 17, 2023, 6:24 p.m. | OK | Java 17 | TESTS | 11 | 249 | 614400 | 1300 | |
205925699 | mcrash12 | F | May 14, 2023, 9:56 p.m. | OK | Java 17 | TESTS | 11 | 264 | 0 | 1300 | |
206494627 | Black-Heart | F | May 19, 2023, 3:14 p.m. | OK | Java 17 | TESTS | 11 | 280 | 5120000 | 1300 | |
206311927 | pavelputin03 | F | May 18, 2023, 8:04 a.m. | OK | Java 17 | TESTS | 11 | 296 | 614400 | 1300 | |
205925531 | mcrash12 | F | May 14, 2023, 9:52 p.m. | OK | Java 17 | TESTS | 11 | 327 | 307200 | 1300 | |
206435224 | vikash_45 | F | May 19, 2023, 10:42 a.m. | OK | Java 17 | TESTS | 11 | 374 | 819200 | 1300 | |
205733100 | md_afique | F | May 13, 2023, 3:01 p.m. | OK | Java 17 | TESTS | 11 | 608 | 716800 | 1300 | |
205970629 | Eshan_Karia | F | May 15, 2023, 10:58 a.m. | OK | Java 17 | TESTS | 11 | 670 | 512000 | 1300 | |
206407172 | rmakash999 | F | May 19, 2023, 5:41 a.m. | OK | Java 17 | TESTS | 11 | 670 | 1126400 | 1300 | |
206408683 | djj_l33t | F | May 19, 2023, 6:01 a.m. | OK | Java 17 | TESTS | 11 | 686 | 1024000 | 1300 | |
205537202 | yadavDipesh | F | May 12, 2023, 12:49 p.m. | OK | Java 8 | TESTS | 11 | 140 | 0 | 1300 | |
206447740 | Yi_ling233 | F | May 19, 2023, 12:51 p.m. | OK | Java 8 | TESTS | 11 | 155 | 0 | 1300 | |
206415527 | ankit_0207 | F | May 19, 2023, 7:26 a.m. | OK | Java 8 | TESTS | 11 | 155 | 0 | 1300 | |
205699749 | kkyb | F | May 13, 2023, 9:33 a.m. | OK | Java 8 | TESTS | 11 | 171 | 0 | 1300 | |
205800049 | toufique_husein | F | May 14, 2023, 7:37 a.m. | OK | Java 8 | TESTS | 11 | 482 | 0 | 1300 | |
206366542 | stolis | F | May 18, 2023, 4:45 p.m. | OK | Java 8 | TESTS | 11 | 499 | 0 | 1300 | |
206206917 | _its.abhinav_ | F | May 17, 2023, 12:03 p.m. | OK | Java 8 | TESTS | 11 | 514 | 0 | 1300 | |
206442693 | k3x9_ | F | May 19, 2023, 12:01 p.m. | OK | Mono C# | TESTS | 11 | 170 | 7065600 | 1300 | |
205742401 | vjudge4 | F | May 13, 2023, 4:33 p.m. | OK | MS C++ 2017 | TESTS | 11 | 312 | 1740800 | 1300 | |
205778422 | vjudge3 | F | May 14, 2023, 3:06 a.m. | OK | MS C++ 2017 | TESTS | 11 | 327 | 1638400 | 1300 | |
206392043 | Liberator187 | F | May 18, 2023, 11:45 p.m. | OK | PyPy 3 | TESTS | 11 | 218 | 8294400 | 1300 | |
205706139 | lol_py | F | May 13, 2023, 10:40 a.m. | OK | PyPy 3 | TESTS | 11 | 264 | 8908800 | 1300 | |
205931564 | whoami096 | F | May 15, 2023, 1:12 a.m. | OK | PyPy 3 | TESTS | 11 | 342 | 9932800 | 1300 | |
206315962 | soudhamini_2000031088 | F | May 18, 2023, 8:47 a.m. | OK | PyPy 3 | TESTS | 11 | 1450 | 9728000 | 1300 | |
205693539 | Laasyak | F | May 13, 2023, 8:40 a.m. | OK | PyPy 3 | TESTS | 11 | 1497 | 9728000 | 1300 | |
206215827 | waynebaorongchen | F | May 17, 2023, 1:23 p.m. | OK | PyPy 3 | TESTS | 11 | 1497 | 9830400 | 1300 | |
205842466 | 2000032071 | F | May 14, 2023, 2:30 p.m. | OK | PyPy 3 | TESTS | 11 | 1543 | 9728000 | 1300 | |
205751156 | beautifulworld | F | May 13, 2023, 5:58 p.m. | OK | PyPy 3 | TESTS | 11 | 1622 | 9830400 | 1300 | |
205820808 | poornaTheja | F | May 14, 2023, 10:34 a.m. | OK | PyPy 3-64 | TESTS | 11 | 171 | 9420800 | 1300 | |
206391540 | voicon | F | May 18, 2023, 11:23 p.m. | OK | PyPy 3-64 | TESTS | 11 | 186 | 10240000 | 1300 | |
206354807 | Sam_Jiang | F | May 18, 2023, 2:50 p.m. | OK | PyPy 3-64 | TESTS | 11 | 249 | 13721600 | 1300 | |
206001289 | KortVick | F | May 15, 2023, 3:14 p.m. | OK | PyPy 3-64 | TESTS | 11 | 1076 | 11059200 | 1300 | |
206522840 | pe4enka_play | F | May 19, 2023, 4:04 p.m. | OK | PyPy 3-64 | TESTS | 11 | 1091 | 8908800 | 1300 | |
206443070 | 2100030666.cseh | F | May 19, 2023, 12:05 p.m. | OK | PyPy 3-64 | TESTS | 11 | 1091 | 8908800 | 1300 | |
206156169 | islamkhan | F | May 16, 2023, 9:09 p.m. | OK | PyPy 3-64 | TESTS | 11 | 1091 | 9830400 | 1300 | |
206318314 | 2000031264 | F | May 18, 2023, 9:10 a.m. | OK | PyPy 3-64 | TESTS | 11 | 1106 | 8908800 | 1300 | |
206255472 | lalith_6055 | F | May 17, 2023, 5:25 p.m. | OK | PyPy 3-64 | TESTS | 11 | 1106 | 8908800 | 1300 | |
206224059 | 2000030958 | F | May 17, 2023, 2:40 p.m. | OK | PyPy 3-64 | TESTS | 11 | 1106 | 8908800 | 1300 | |
206358790 | Ptato | F | May 18, 2023, 3:28 p.m. | OK | Python 3 | TESTS | 11 | 202 | 409600 | 1300 | |
205715089 | sddddd6 | F | May 13, 2023, 12:08 p.m. | OK | Python 3 | TESTS | 11 | 249 | 1126400 | 1300 | |
206105017 | fridalex007 | F | May 16, 2023, 3:19 p.m. | OK | Python 3 | TESTS | 11 | 280 | 409600 | 1300 | |
206300598 | Manikya_0309 | F | May 18, 2023, 5:44 a.m. | OK | Python 3 | TESTS | 11 | 295 | 307200 | 1300 | |
205998702 | brownfox2k6 | F | May 15, 2023, 2:49 p.m. | OK | Python 3 | TESTS | 11 | 312 | 0 | 1300 | |
206156530 | Jopson | F | May 16, 2023, 9:19 p.m. | OK | Python 3 | TESTS | 11 | 312 | 307200 | 1300 | |
206577392 | vjudge4 | F | May 20, 2023, 12:52 a.m. | OK | Python 3 | TESTS | 11 | 327 | 716800 | 1300 | |
205740439 | vjudge3 | F | May 13, 2023, 4:12 p.m. | OK | Python 3 | TESTS | 11 | 342 | 614400 | 1300 | |
205939427 | neerajam | F | May 15, 2023, 4:14 a.m. | OK | Python 3 | TESTS | 11 | 343 | 204800 | 1300 | |
205842461 | srinija_chowdary9 | F | May 14, 2023, 2:30 p.m. | OK | Python 3 | TESTS | 11 | 343 | 204800 | 1300 | |
205977983 | Gabr1313 | F | May 15, 2023, 12:07 p.m. | OK | Rust 2021 | TESTS | 11 | 46 | 0 | 1300 |
Back to search problems