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 |
---|---|---|---|---|---|---|
1252 | 2019-2020 ICPC, Asia Jakarta Regional Contest (Online Mirror, ICPC Rules, Teams Preferred) | FINISHED | False | 18000 | 165292187 | Oct. 27, 2019, 3:30 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 953 ) | F | Regular Forestation | PROGRAMMING | hashing trees | 2500 |
B'A forestation is an act of planting a bunch of trees to grow a forest, usually to replace a forest that had been cut down. Strangely enough, graph theorists have another idea on how to make a forest, i.e. by cutting down a tree! A tree is a graph of N nodes connected by N - 1 edges. Let u be a node in a tree U which degree is at least 2 (i.e. directly connected to at least 2 other nodes in U ). If we remove u from U , then we will get two or more disconnected (smaller) trees, or also known as forest by graph theorists. In this problem, we are going to investigate a special forestation of a tree done by graph theorists. Let V(S) be the set of nodes in a tree S and V(T) be the set of nodes in a tree T . Tree S and tree T are identical if there exists a bijection f : V(S) rightarrow V(T) such that for all pairs of nodes (s_i, s_j) in V(S) , s_i and s_j is connected by an edge in S if and only if node f(s_i) and f(s_j) is connected by an edge in T . Note that f(s) = t implies node s in S corresponds to node t in T . We call a node u in a tree U as a good cutting point if and only if the removal of u from U causes two or more disconnected trees, and all those disconnected trees are pairwise identical. Given a tree U , your task is to determine whether there exists a good cutting point in U . If there is such a node, then you should output the maximum number of disconnected trees that can be obtained by removing exactly one good cutting point. For example, consider the following tree of 13 nodes. There is exactly one good cutting point in this tree, i.e. node 4 . Observe that by removing node 4 , we will get three identical trees (in this case, line graphs), i.e. {5, 1, 7, 13 } , {8, 2, 11, 6 } , and {3, 12, 9, 10 } , which are '... |
T |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
64234275 | a1214034447 | F | Nov. 4, 2019, 2:07 p.m. | OK | GNU C++11 | TESTS | 48 | 31 | 307200 | 2500 | |
64202282 | jacknazi | F | Nov. 4, 2019, 11:50 a.m. | OK | GNU C++11 | TESTS | 48 | 31 | 307200 | 2500 | |
64201957 | jacknazi | F | Nov. 4, 2019, 11:44 a.m. | OK | GNU C++11 | TESTS | 48 | 31 | 307200 | 2500 | |
64126386 | vjudge3 | F | Nov. 3, 2019, 4:59 a.m. | OK | GNU C++11 | TESTS | 48 | 31 | 307200 | 2500 | |
63524162 | .ckodser. SaSa AghaTizi | F | Oct. 27, 2019, 4:44 a.m. | OK | GNU C++11 | TESTS | 48 | 31 | 307200 | 2500 | |
66159842 | WZYYN | F | Dec. 2, 2019, 3:21 a.m. | OK | GNU C++11 | TESTS | 48 | 31 | 409600 | 2500 | |
64145533 | 1234567891 dsvkljd yrz | F | Nov. 3, 2019, 9:45 a.m. | OK | GNU C++11 | TESTS | 48 | 31 | 409600 | 2500 | |
64124179 | vjudge3 | F | Nov. 3, 2019, 3:37 a.m. | OK | GNU C++11 | TESTS | 48 | 31 | 409600 | 2500 | |
63760553 | Prabowo | F | Oct. 30, 2019, 3:24 a.m. | OK | GNU C++11 | TESTS | 48 | 31 | 409600 | 2500 | |
63536089 | nwi | F | Oct. 27, 2019, 8:07 a.m. | OK | GNU C++11 | TESTS | 48 | 31 | 512000 | 2500 | |
67424914 | DeepThought42 | F | Dec. 22, 2019, 1:04 p.m. | OK | GNU C++14 | TESTS | 48 | 15 | 1024000 | 2500 | |
63532976 | tusg25 TheOneYouWant | F | Oct. 27, 2019, 7:15 a.m. | OK | GNU C++14 | TESTS | 48 | 30 | 512000 | 2500 | |
64150945 | anayMehrotra yashChandnani gravito12345 | F | Nov. 3, 2019, 11:23 a.m. | OK | GNU C++14 | TESTS | 48 | 30 | 1843200 | 2500 | |
63621931 | chenkuowen | F | Oct. 28, 2019, 12:01 a.m. | OK | GNU C++14 | TESTS | 48 | 30 | 6246400 | 2500 | |
66134087 | tanishqg5325 | F | Dec. 1, 2019, 11:34 a.m. | OK | GNU C++14 | TESTS | 48 | 31 | 409600 | 2500 | |
65607476 | aviroop123 | F | Nov. 23, 2019, 9:48 p.m. | OK | GNU C++14 | TESTS | 48 | 31 | 409600 | 2500 | |
63692155 | ganbaranai oToToT minson123 | F | Oct. 29, 2019, 3:21 a.m. | OK | GNU C++14 | TESTS | 48 | 31 | 409600 | 2500 | |
63532132 | WA_TLE | F | Oct. 27, 2019, 7:01 a.m. | OK | GNU C++14 | TESTS | 48 | 31 | 409600 | 2500 | |
63526016 | w190971822 zbww yijan | F | Oct. 27, 2019, 5:16 a.m. | OK | GNU C++14 | TESTS | 48 | 31 | 409600 | 2500 | |
63523910 | ecnerwala scott_wu | F | Oct. 27, 2019, 4:40 a.m. | OK | GNU C++14 | TESTS | 48 | 31 | 409600 | 2500 | |
64115912 | samuelfgs lucasturci | F | Nov. 2, 2019, 8:45 p.m. | OK | GNU C++17 | TESTS | 48 | 30 | 614400 | 2500 | |
64786941 | A_root_A | F | Nov. 13, 2019, 9:30 a.m. | OK | GNU C++17 | TESTS | 48 | 30 | 5017600 | 2500 | |
64565046 | GENGBK Unsterblicher_Geist cxmsqjh | F | Nov. 9, 2019, 7:25 a.m. | OK | GNU C++17 | TESTS | 48 | 31 | 307200 | 2500 | |
64194568 | vjudge3 | F | Nov. 4, 2019, 9:08 a.m. | OK | GNU C++17 | TESTS | 48 | 31 | 307200 | 2500 | |
64140217 | yangzijun ckxkexing ZhihuiLiu | F | Nov. 3, 2019, 8:19 a.m. | OK | GNU C++17 | TESTS | 48 | 31 | 409600 | 2500 | |
63768845 | SheepRanger | F | Oct. 30, 2019, 7:12 a.m. | OK | GNU C++17 | TESTS | 48 | 31 | 409600 | 2500 | |
63531359 | chenyeyuan CN_zwang2002 YangDavid | F | Oct. 27, 2019, 6:48 a.m. | OK | GNU C++17 | TESTS | 48 | 31 | 409600 | 2500 | |
63524947 | Amoo_Safar SHOToRSAVARE_KAZEMSHAHR Vahm | F | Oct. 27, 2019, 4:58 a.m. | OK | GNU C++17 | TESTS | 48 | 31 | 409600 | 2500 | |
69505836 | seyun | F | Jan. 25, 2020, 8:33 a.m. | OK | GNU C++17 | TESTS | 48 | 31 | 512000 | 2500 | |
66072898 | krijgertje | F | Nov. 30, 2019, 8:39 p.m. | OK | GNU C++17 | TESTS | 48 | 31 | 512000 | 2500 | |
65820112 | dalt | F | Nov. 27, 2019, 10:05 a.m. | OK | Java 8 | TESTS | 48 | 140 | 19353600 | 2500 | |
66896330 | vjudge2 | F | Dec. 15, 2019, 2:04 a.m. | OK | MS C++ | TESTS | 48 | 405 | 409600 | 2500 | |
64773110 | lonely_moon | F | Nov. 13, 2019, 1:53 a.m. | OK | MS C++ 2017 | TESTS | 48 | 452 | 307200 | 2500 |
Back to search problems