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 |
|---|---|---|---|---|---|---|
| 847 | 2017-2018 ACM-ICPC, NEERC, Southern Subregional Contest, qualification stage (Online Mirror, ACM-ICPC Rules, Teams Preferred) | FINISHED | False | 14400 | 270665723 | Sept. 18, 2017, 1:05 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 346 ) | L | Berland SU Computer Network | PROGRAMMING | dfs and similar hashing trees | 2500 |
In the computer network of the Berland State University there are n routers numbered from 1 to n . Some pairs of routers are connected by patch cords. Information can be transmitted over patch cords in both direction. The network is arranged in such a way that communication between any two routers (directly or through other routers) is possible. There are no cycles in the network, so there is only one path between each pair of routers over patch cords. Unfortunately, the exact topology of the network was lost by administrators. In order to restore it, the following auxiliary information was collected. For each patch cord p , directly connected to the router i , list of routers located behind the patch cord p relatively i is known. In other words, all routers path from which to the router i goes through p are known. So for each router i there are k i lists, where k i is the number of patch cords connected to i . For example, let the network consists of three routers connected in chain 1 - 2 - 3 . Then: the router 1 : for the single patch cord connected to the first router there is a single list containing two routers: 2 and 3 ; the router 2 : for each of the patch cords connected to the second router there is a list: one list contains the router 1 and the other — the router 3 ; the router 3 : for the single patch cord connected to the third router there is a single list containing two routers: 1 and 2 . Your task is to help administrators to restore the network topology, i. e. to identify all pairs of routers directly connected by a patch cord. The first line contains a single integer n ( 2 ≤ n ≤ 1000 ) — the number of routers in the network. The i -th of the following n lines contains a description of the lists for the router i . The description of each list begins with the number of routers in it. Then the symbol ' : ' follows, and after that the numbers of routers from the list are given. This numbers are separated by comma. Lists are separated by symbol |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 30478981 | Sanja | L | Sept. 18, 2017, 4:49 p.m. | OK | FPC | TESTS | 48 | 78 | 8806400 | 2500 | |
| 30493575 | lllllllllllllllllllllll | L | Sept. 19, 2017, 10:20 a.m. | OK | GNU C++ | TESTS | 48 | 46 | 8294400 | 2500 | |
| 30491108 | shanquan2 | L | Sept. 19, 2017, 8:02 a.m. | OK | GNU C++ | TESTS | 48 | 61 | 8089600 | 2500 | |
| 32550630 | Zarxdy34 | L | Nov. 22, 2017, 12:49 p.m. | OK | GNU C++ | TESTS | 49 | 62 | 8294400 | 2500 | |
| 30490718 | SkyDec | L | Sept. 19, 2017, 7:37 a.m. | OK | GNU C++ | TESTS | 48 | 62 | 8294400 | 2500 | |
| 30553036 | nguyenxxxxxxx | L | Sept. 20, 2017, 5:01 p.m. | OK | GNU C++ | TESTS | 48 | 92 | 13824000 | 2500 | |
| 30686896 | dothanhlam97 | L | Sept. 24, 2017, 5:32 p.m. | OK | GNU C++ | TESTS | 48 | 93 | 8806400 | 2500 | |
| 30480605 | nhho | L | Sept. 18, 2017, 5:27 p.m. | OK | GNU C++ | TESTS | 48 | 124 | 5427200 | 2500 | |
| 30480542 | nhho | L | Sept. 18, 2017, 5:25 p.m. | OK | GNU C++ | TESTS | 48 | 124 | 5427200 | 2500 | |
| 32573490 | DeaphetS | L | Nov. 23, 2017, 11:31 a.m. | OK | GNU C++ | TESTS | 49 | 171 | 20070400 | 2500 | |
| 32573594 | DeaphetS | L | Nov. 23, 2017, 11:35 a.m. | OK | GNU C++ | TESTS | 49 | 186 | 20070400 | 2500 | |
| 40980056 | ReaLNero1 | L | July 30, 2018, 5:21 p.m. | OK | GNU C++11 | TESTS | 49 | 46 | 512000 | 2500 | |
| 30488889 | zlc1114 | L | Sept. 19, 2017, 5:40 a.m. | OK | GNU C++11 | TESTS | 48 | 46 | 614400 | 2500 | |
| 54542294 | Connected_failed rvalue Chaiki_Cage | L | May 24, 2019, 3:11 a.m. | OK | GNU C++11 | TESTS | 49 | 46 | 8294400 | 2500 | |
| 30475047 | eddy1021 | L | Sept. 18, 2017, 3:36 p.m. | OK | GNU C++11 | TESTS | 48 | 62 | 7270400 | 2500 | |
| 30469704 | tourist | L | Sept. 18, 2017, 2:11 p.m. | OK | GNU C++11 | TESTS | 48 | 62 | 18432000 | 2500 | |
| 30888962 | marat.snowbear | L | Sept. 30, 2017, 10:19 p.m. | OK | GNU C++11 | TESTS | 48 | 77 | 4812800 | 2500 | |
| 30904602 | liziy | L | Oct. 1, 2017, 9:32 a.m. | OK | GNU C++11 | TESTS | 48 | 77 | 10137600 | 2500 | |
| 30473271 | FallDream ditoly ACMLCZH | L | Sept. 18, 2017, 3:07 p.m. | OK | GNU C++11 | TESTS | 48 | 77 | 10137600 | 2500 | |
| 31788622 | Paul_Guderian | L | Oct. 27, 2017, 8:29 a.m. | OK | GNU C++11 | TESTS | 49 | 77 | 16281600 | 2500 | |
| 31525037 | Jayzhang | L | Oct. 20, 2017, 6:31 a.m. | OK | GNU C++11 | TESTS | 48 | 78 | 10342400 | 2500 | |
| 34483394 | Even_You_Brutus... | L | Jan. 23, 2018, 1:20 p.m. | OK | GNU C++14 | TESTS | 49 | 62 | 18534400 | 2500 | |
| 30935397 | swust_20131737 | L | Oct. 2, 2017, 6:57 a.m. | OK | GNU C++14 | TESTS | 48 | 77 | 10752000 | 2500 | |
| 31116585 | aditya1701 | L | Oct. 7, 2017, 1:34 p.m. | OK | GNU C++14 | TESTS | 48 | 78 | 32665600 | 2500 | |
| 30598680 | Omelianenko | L | Sept. 21, 2017, 7:57 p.m. | OK | GNU C++14 | TESTS | 48 | 93 | 16793600 | 2500 | |
| 30471467 | Markellonchik Sonechko danya.smelskiy | L | Sept. 18, 2017, 2:39 p.m. | OK | GNU C++14 | TESTS | 48 | 93 | 18534400 | 2500 | |
| 30472077 | dotorya | L | Sept. 18, 2017, 2:49 p.m. | OK | GNU C++14 | TESTS | 48 | 109 | 13824000 | 2500 | |
| 30689975 | magieNoire | L | Sept. 24, 2017, 8:15 p.m. | OK | GNU C++14 | TESTS | 48 | 124 | 9318400 | 2500 | |
| 30731914 | isaf27 kek1234 | L | Sept. 25, 2017, 3:59 p.m. | OK | GNU C++14 | TESTS | 48 | 140 | 5222400 | 2500 | |
| 30503925 | Vladislao mjhun ec24 | L | Sept. 19, 2017, 3:12 p.m. | OK | GNU C++14 | TESTS | 48 | 140 | 12595200 | 2500 | |
| 30568197 | Sealionheart | L | Sept. 21, 2017, 6:24 a.m. | OK | GNU C++14 | TESTS | 48 | 140 | 25804800 | 2500 | |
| 52334340 | Kuroni | L | April 5, 2019, 7:07 a.m. | OK | GNU C++17 | TESTS | 49 | 78 | 8294400 | 2500 | |
| 39865424 | Ali_Pi | L | July 2, 2018, 10:51 a.m. | OK | GNU C++17 | TESTS | 49 | 202 | 20070400 | 2500 | |
| 60407837 | yorky | L | Sept. 11, 2019, 7:32 p.m. | OK | GNU C++17 | TESTS | 49 | 202 | 26316800 | 2500 | |
| 60454855 | _kekus | L | Sept. 12, 2019, 5:29 p.m. | OK | GNU C++17 | TESTS | 49 | 202 | 26419200 | 2500 | |
| 52218651 | chinmay0906 | L | April 2, 2019, 4:54 a.m. | OK | GNU C++17 | TESTS | 49 | 280 | 25190400 | 2500 | |
| 42714549 | surokpro | L | Sept. 9, 2018, 6:16 p.m. | OK | GNU C++17 | TESTS | 49 | 514 | 48537600 | 2500 | |
| 30501338 | 4mda4mda | L | Sept. 19, 2017, 2:33 p.m. | OK | Java 8 | TESTS | 48 | 296 | 0 | 2500 | |
| 31003969 | 4mda4mda | L | Oct. 4, 2017, 10:18 p.m. | OK | Java 8 | TESTS | 48 | 311 | 0 | 2500 | |
| 31280980 | vovacomua | L | Oct. 13, 2017, 5:15 p.m. | OK | Java 8 | TESTS | 48 | 467 | 5324800 | 2500 | |
| 30477990 | uwi | L | Sept. 18, 2017, 4:30 p.m. | OK | Java 8 | TESTS | 48 | 733 | 20992000 | 2500 | |
| 30481559 | dalex | L | Sept. 18, 2017, 6:11 p.m. | OK | Java 8 | TESTS | 48 | 904 | 92160000 | 2500 | |
| 30481487 | pitfall | L | Sept. 18, 2017, 6:07 p.m. | OK | Java 8 | TESTS | 48 | 919 | 83558400 | 2500 | |
| 30476604 | lucyanna2018 | L | Sept. 18, 2017, 4:03 p.m. | OK | MS C# | TESTS | 48 | 343 | 19148800 | 2500 | |
| 30508246 | Maffka | L | Sept. 19, 2017, 3:30 p.m. | OK | MS C++ | TESTS | 48 | 499 | 4608000 | 2500 | |
| 30983362 | SSW | L | Oct. 4, 2017, 5:09 a.m. | OK | MS C++ | TESTS | 48 | 1856 | 4505600 | 2500 | |
| 30953624 | LightRay | L | Oct. 2, 2017, 9:20 p.m. | OK | MS C++ | TESTS | 48 | 1996 | 64614400 | 2500 |
Back to search problems