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 |
---|---|---|---|---|---|---|
1284 | Hello 2020 | FINISHED | False | 9000 | 153683699 | Jan. 4, 2020, 12:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 326 ) | F | New Year and Social Network | PROGRAMMING | data structures graph matchings graphs math trees | 3100 |
B"Donghyun's new social network service (SNS) contains n users numbered 1, 2, ldots, n . Internally, their network is a tree graph, so there are n-1 direct connections between each user. Each user can reach every other users by using some sequence of direct connections. From now on, we will denote this primary network as T_1 . To prevent a possible server breakdown, Donghyun created a backup network T_2 , which also connects the same n users via a tree graph. If a system breaks down, exactly one edge e in T_1 becomes unusable. In this case, Donghyun will protect the edge e by picking another edge f in T_2 , and add it to the existing network. This new edge should make the network be connected again. Donghyun wants to assign a replacement edge f in T_2 for as many edges e in T_1 as possible. However, since the backup network T_2 is fragile, f in T_2 can be assigned as the replacement edge for at most one edge in T_1 . With this restriction, Donghyun wants to protect as many edges in T_1 as possible. Formally, let E(T) be an edge set of the tree T . We consider a bipartite graph with two parts E(T_1) and E(T_2) . For e in E(T_1), f in E(T_2) , there is an edge connecting {e, f } if and only if graph T_1 - {e } + {f } is a tree. You should find a maximum matching in this bipartite graph. The first line contains an integer n ( 2 <= n <= 250 ,000 ), the number of users. In the next n-1 lines, two integers a_i , b_i ( 1 <= a_i, b_i <= n ) are given. Those two numbers denote the indices of the vertices connected by the corresponding edge in T_1 . In the next n-1 lines, two integers c_i , d_i ( 1 <= c_i, d_i <= n ) are given. Those two numbers denote the indices of the vertices connected by the corresponding edge in T_2 . It is guaranteed that both edge sets form "... |
Hello 2020 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
68228329 | LJC00118 | F | Jan. 5, 2020, 8:08 a.m. | OK | GNU C++11 | TESTS | 54 | 561 | 18329600 | 3100 | |
68239763 | Lagoon_ | F | Jan. 5, 2020, 12:21 p.m. | OK | GNU C++11 | TESTS | 54 | 623 | 50688000 | 3100 | |
68410029 | atoiz | F | Jan. 8, 2020, 4:38 p.m. | OK | GNU C++11 | TESTS | 54 | 717 | 28979200 | 3100 | |
68423329 | panole | F | Jan. 9, 2020, 12:51 a.m. | OK | GNU C++11 | TESTS | 54 | 763 | 37171200 | 3100 | |
68590513 | VOCALOID2009 | F | Jan. 11, 2020, 12:31 p.m. | OK | GNU C++11 | TESTS | 54 | 764 | 62054400 | 3100 | |
68423385 | panole | F | Jan. 9, 2020, 12:55 a.m. | OK | GNU C++11 | TESTS | 54 | 794 | 37171200 | 3100 | |
69494931 | frodakcin | F | Jan. 25, 2020, 3:01 a.m. | OK | GNU C++11 | TESTS | 54 | 826 | 50176000 | 3100 | |
68408575 | atoiz | F | Jan. 8, 2020, 4:01 p.m. | OK | GNU C++11 | TESTS | 54 | 872 | 28876800 | 3100 | |
68217150 | cjy2003 | F | Jan. 5, 2020, 1:02 a.m. | OK | GNU C++11 | TESTS | 54 | 873 | 50585600 | 3100 | |
68225969 | i_am_sooke | F | Jan. 5, 2020, 7:09 a.m. | OK | GNU C++11 | TESTS | 54 | 888 | 49152000 | 3100 | |
68743662 | Nson | F | Jan. 14, 2020, 3:06 a.m. | OK | GNU C++14 | TESTS | 54 | 717 | 39321600 | 3100 | |
69287330 | tmwilliamlin168 | F | Jan. 22, 2020, 8:46 a.m. | OK | GNU C++14 | TESTS | 54 | 717 | 57753600 | 3100 | |
68484175 | mshcherba | F | Jan. 10, 2020, 9 a.m. | OK | GNU C++14 | TESTS | 54 | 780 | 57446400 | 3100 | |
68202540 | nhho | F | Jan. 4, 2020, 4:28 p.m. | OK | GNU C++14 | TESTS | 54 | 842 | 85094400 | 3100 | |
68765266 | jambow | F | Jan. 14, 2020, 9:41 a.m. | OK | GNU C++14 | TESTS | 54 | 904 | 27955200 | 3100 | |
68222994 | BSBandme | F | Jan. 5, 2020, 5:52 a.m. | OK | GNU C++14 | TESTS | 54 | 904 | 60313600 | 3100 | |
68336623 | Motarack | F | Jan. 6, 2020, 10:37 p.m. | OK | GNU C++14 | TESTS | 54 | 920 | 47308800 | 3100 | |
68193508 | nealchen | F | Jan. 4, 2020, 2:07 p.m. | OK | GNU C++14 | TESTS | 54 | 935 | 54272000 | 3100 | |
69075701 | Scut82 | F | Jan. 19, 2020, 2:55 a.m. | OK | GNU C++14 | TESTS | 54 | 982 | 48844800 | 3100 | |
68856617 | jerome_wei | F | Jan. 15, 2020, 10:50 a.m. | OK | GNU C++14 | TESTS | 54 | 1013 | 49254400 | 3100 | |
68557065 | ftiasch | F | Jan. 10, 2020, 5:58 p.m. | OK | GNU C++17 | TESTS | 54 | 592 | 44441600 | 3100 | |
68555918 | ftiasch | F | Jan. 10, 2020, 5:21 p.m. | OK | GNU C++17 | TESTS | 54 | 779 | 44134400 | 3100 | |
68244643 | swust5120177231 | F | Jan. 5, 2020, 2:06 p.m. | OK | GNU C++17 | TESTS | 54 | 811 | 62156800 | 3100 | |
68228697 | NephrenRuqInsania | F | Jan. 5, 2020, 8:18 a.m. | OK | GNU C++17 | TESTS | 54 | 826 | 27955200 | 3100 | |
68323977 | nvmdava | F | Jan. 6, 2020, 4:05 p.m. | OK | GNU C++17 | TESTS | 54 | 826 | 57344000 | 3100 | |
68187830 | gamegame | F | Jan. 4, 2020, 1:35 p.m. | OK | GNU C++17 | TESTS | 54 | 842 | 55296000 | 3100 | |
68300331 | RNS_CUS | F | Jan. 6, 2020, 6:10 a.m. | OK | GNU C++17 | TESTS | 54 | 857 | 51712000 | 3100 | |
68302462 | RNS_CUS | F | Jan. 6, 2020, 7:23 a.m. | OK | GNU C++17 | TESTS | 54 | 889 | 52940800 | 3100 | |
68217139 | teapotd | F | Jan. 5, 2020, 1:01 a.m. | OK | GNU C++17 | TESTS | 54 | 904 | 57241600 | 3100 | |
68302456 | RNS_CUS | F | Jan. 6, 2020, 7:23 a.m. | OK | GNU C++17 | TESTS | 54 | 935 | 52940800 | 3100 | |
68317871 | dalt | F | Jan. 6, 2020, 1:51 p.m. | OK | Java 8 | TESTS | 54 | 2028 | 197734400 | 3100 | |
68317692 | dalt | F | Jan. 6, 2020, 1:48 p.m. | OK | Java 8 | TESTS | 54 | 2745 | 197632000 | 3100 |
Back to search problems