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 |
---|---|---|---|---|---|---|
( 531 ) | B | Cleaning Robots | PROGRAMMING | dp trees | 2600 |
B"The new ICPC town has N junctions (numbered from 1 to N ) which are connected by N-1 roads. It is possible from one junction to go to any other junctions by going through one or more roads. To make sure all the junctions are well-maintained, the government environment agency is planning to deploy their newest advanced cleaning robots. In addition to its cleaning ability, each robot is also equipped with a movement ability such that it can move from one junction to any other junctions connected by roads. However, as you might have guessed, such robots are not cheap. Therefore, the agency is considering the following deployment plan. Let T_k be the set of junctions which should be cleaned by the k^{th} robot (also known as, the robot's task), and |T_k| ge 1 be the number of junctions in T_k . The junctions in T_k form a path, i.e. there exists a sequence of v_1, v_2, ... , v_{|T_k|} where v_i in T_k and v_i neq v_j for all i neq j such that each adjacent junction in this sequence is connected by a road. The union of T for all robots is equal to the set of all junctions in ICPC town. On the other hand, no two robots share a common junction, i.e. T_i cap T_j = emptyset if i neq j . To avoid complaints from citizens for an inefficient operation, the deployment plan should be irreducible; in other words, there should be no two robots, i and j , such that T_i cup T_j forms a (longer) path. Note that the agency does not care whether the number of robots being used is minimized as long as all the tasks are irreducible. Your task in this problem is to count the number of feasible deployment plan given the town's layout. A plan is feasible if and only if it satisfies all the above-mentioned requirements. For example, let N = 6 and the roads are {(1,3),(2,3),(3,4),(4,5),(4,6) } . There are 5 feasible deployment plans as shown in the "... |
T |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
63646036 | _blackjack_ | B | Oct. 28, 2019, 9:42 a.m. | OK | GNU C++11 | TESTS | 54 | 46 | 14540800 | 2600 | |
63940402 | danya090699 | B | Oct. 31, 2019, 5:18 p.m. | OK | GNU C++11 | TESTS | 54 | 62 | 10342400 | 2600 | |
64128228 | vjudge3 | B | Nov. 3, 2019, 5:49 a.m. | OK | GNU C++11 | TESTS | 54 | 62 | 10752000 | 2600 | |
63521409 | panole zx2003 | B | Oct. 27, 2019, 3:51 a.m. | OK | GNU C++11 | TESTS | 54 | 62 | 11571200 | 2600 | |
63532237 | Usefully_XunYu Charlie_shadow Hunter_Will | B | Oct. 27, 2019, 7:03 a.m. | OK | GNU C++11 | TESTS | 54 | 62 | 14233600 | 2600 | |
68472975 | crybymyself | B | Jan. 10, 2020, 3:24 a.m. | OK | GNU C++11 | TESTS | 54 | 62 | 18227200 | 2600 | |
65560035 | vjudge3 | B | Nov. 23, 2019, 2:14 a.m. | OK | GNU C++11 | TESTS | 54 | 77 | 14848000 | 2600 | |
63691969 | AC-Evil CYW_lyr guoyifan | B | Oct. 29, 2019, 3:14 a.m. | OK | GNU C++11 | TESTS | 54 | 77 | 18227200 | 2600 | |
63899557 | FairyHiweibolu zht111 Tommyr7 | B | Oct. 31, 2019, 4:31 a.m. | OK | GNU C++11 | TESTS | 54 | 78 | 12185600 | 2600 | |
63528993 | Trans trungvthe130284 ahcl7 | B | Oct. 27, 2019, 6:09 a.m. | OK | GNU C++11 | TESTS | 54 | 78 | 15462400 | 2600 | |
63523008 | myx12345 chenkuowen | B | Oct. 27, 2019, 4:23 a.m. | OK | GNU C++14 | TESTS | 54 | 62 | 8806400 | 2600 | |
63738719 | Yousef_Salama | B | Oct. 29, 2019, 4:10 p.m. | OK | GNU C++14 | TESTS | 54 | 78 | 13721600 | 2600 | |
63562396 | Hell_Eclipse | B | Oct. 27, 2019, 2:39 p.m. | OK | GNU C++14 | TESTS | 54 | 78 | 19148800 | 2600 | |
63769649 | hitman623 | B | Oct. 30, 2019, 7:31 a.m. | OK | GNU C++14 | TESTS | 54 | 93 | 9420800 | 2600 | |
63647706 | Scut82 | B | Oct. 28, 2019, 10:20 a.m. | OK | GNU C++14 | TESTS | 54 | 93 | 12083200 | 2600 | |
63531884 | wakaka | B | Oct. 27, 2019, 6:57 a.m. | OK | GNU C++14 | TESTS | 54 | 93 | 12492800 | 2600 | |
64787194 | yan-zp | B | Nov. 13, 2019, 9:35 a.m. | OK | GNU C++14 | TESTS | 54 | 93 | 12902400 | 2600 | |
63525115 | ecnerwala scott_wu | B | Oct. 27, 2019, 5:01 a.m. | OK | GNU C++14 | TESTS | 54 | 93 | 13312000 | 2600 | |
63524089 | WA_TLE | B | Oct. 27, 2019, 4:43 a.m. | OK | GNU C++14 | TESTS | 54 | 93 | 13414400 | 2600 | |
63525641 | nhho | B | Oct. 27, 2019, 5:10 a.m. | OK | GNU C++14 | TESTS | 54 | 93 | 13721600 | 2600 | |
67182219 | Usefully_XunYu | B | Dec. 19, 2019, 12:50 a.m. | OK | GNU C++17 | TESTS | 54 | 78 | 14233600 | 2600 | |
67182143 | luogu_bot2 | B | Dec. 19, 2019, 12:44 a.m. | OK | GNU C++17 | TESTS | 54 | 78 | 14233600 | 2600 | |
63662742 | Benq | B | Oct. 28, 2019, 2:20 p.m. | OK | GNU C++17 | TESTS | 54 | 93 | 11571200 | 2600 | |
63528716 | Um_nik | B | Oct. 27, 2019, 6:04 a.m. | OK | GNU C++17 | TESTS | 54 | 93 | 12595200 | 2600 | |
68403009 | jiangly | B | Jan. 8, 2020, 1:51 p.m. | OK | GNU C++17 | TESTS | 54 | 93 | 12902400 | 2600 | |
64857236 | codelegend | B | Nov. 14, 2019, 12:17 a.m. | OK | GNU C++17 | TESTS | 54 | 93 | 13721600 | 2600 | |
64350667 | gyz_gyz DeaphetS Zarxdy34 | B | Nov. 6, 2019, 8:13 a.m. | OK | GNU C++17 | TESTS | 54 | 93 | 14540800 | 2600 | |
63527289 | edisonhello skylinebaby waynetuinfor | B | Oct. 27, 2019, 5:38 a.m. | OK | GNU C++17 | TESTS | 54 | 93 | 14643200 | 2600 | |
64457202 | BinGoo0o0o | B | Nov. 7, 2019, 9:06 a.m. | OK | GNU C++17 | TESTS | 54 | 93 | 16179200 | 2600 | |
63533631 | mbrc NoCodeNoLife ashish11 | B | Oct. 27, 2019, 7:26 a.m. | OK | GNU C++17 | TESTS | 54 | 93 | 142745600 | 2600 | |
69614583 | ZeyadKhattab | B | Jan. 27, 2020, 12:42 p.m. | OK | Java 11 | TESTS | 54 | 561 | 53555200 | 2600 | |
65827939 | dalt | B | Nov. 27, 2019, 1:16 p.m. | OK | Java 8 | TESTS | 54 | 280 | 67686400 | 2600 |
Back to search problems