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 |
---|---|---|---|---|---|---|
1218 | Bubble Cup 12 - Finals [Online Mirror, unrated, Div. 1] | FINISHED | False | 18000 | 168884687 | Sept. 15, 2019, 1:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 524 ) | D | Xor Spanning Tree | PROGRAMMING | divide and conquer fft graphs | 2600 |
B'In the galaxy far far away is the ancient interplanetary republic of Bubbleland, consisting of N planets. Between them, there are M bidirectional wormholes, each connecting a pair of planets. Bubbleland is a very centralized republic, having a capital planet Whiteplanet, from which any another planet can be reached using these wormholes. It is also guaranteed that no wormhole connects planet to itself and that no two different wormholes connect same pair of planets. We call a path that begins at one planet, visits other planets and each of them at most once and returns to starting point a tour. Interplanetary Safety Regulations guarantee that each planet belongs to at most one tour and that there are at most 42 tours. After many eons of usage, wormholes need to be repaired and each wormhole has the cost W_{i} which needs to be payed for reparation. Unfortunately, the Senate of Bubbleland is short on budget. Therefore, they have decided only to fix as many wormholes as they need in order to have all planets reachable from capital and to pay as little money as they have to for this repair. However the way in which the Senate calculates the cost is different. Cost of the set of reparations is binary xor of costs of each individual reparation, that is if reparations to be made have costs A_{1},A_{2},...,A_{k} , the cost of entire set is A_{1} oplus A_{2} oplus ... oplus A_{k} . Now the Senate would like to know how much money do they have to pay and also the number of different ways to achieve that cost modulo 1000000007 . First line of input contains two numbers N (1 <= q N <= q 100.000) , the number of planets and M (1 <= q M <= q 100.041) , the number of wormholes. Following M lines contain three numbers U, V (1 <= q U neq V <= q N) and W (1 <= q W <= q 100.000) , meaning that there exists a wormhole connecting planets U and V , with repair cost of W . Output two numbers,'... |
E |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
63362485 | X_o_r | D | Oct. 25, 2019, 6:15 a.m. | OK | GNU C++11 | TESTS | 31 | 202 | 13004800 | 2600 | |
63242620 | 2829908231 | D | Oct. 23, 2019, 1:50 p.m. | OK | GNU C++11 | TESTS | 31 | 405 | 12492800 | 2600 | |
63242851 | 2829908231 | D | Oct. 23, 2019, 1:53 p.m. | OK | GNU C++11 | TESTS | 31 | 436 | 12492800 | 2600 | |
62343260 | Prabowo | D | Oct. 11, 2019, 6:18 a.m. | OK | GNU C++11 | TESTS | 31 | 451 | 18739200 | 2600 | |
60649416 | leaf1415 | D | Sept. 15, 2019, 6:30 p.m. | OK | GNU C++11 | TESTS | 31 | 561 | 22323200 | 2600 | |
60735586 | BigBag | D | Sept. 17, 2019, 5:21 p.m. | OK | GNU C++11 | TESTS | 31 | 654 | 16486400 | 2600 | |
65936897 | alpc_qleonardo | D | Nov. 29, 2019, 2:58 a.m. | OK | GNU C++11 | TESTS | 31 | 654 | 20787200 | 2600 | |
60642748 | nwi | D | Sept. 15, 2019, 3:59 p.m. | OK | GNU C++11 | TESTS | 31 | 1060 | 20684800 | 2600 | |
62336917 | xymtxdy | D | Oct. 11, 2019, 2:12 a.m. | OK | GNU C++11 | TESTS | 31 | 1200 | 128000000 | 2600 | |
60745648 | QAQAutoMaton | D | Sept. 18, 2019, 1:13 a.m. | OK | GNU C++11 | TESTS | 31 | 1310 | 22835200 | 2600 | |
60746018 | Cyanic | D | Sept. 18, 2019, 1:40 a.m. | OK | GNU C++14 | TESTS | 31 | 312 | 13619200 | 2600 | |
60648023 | RobeZH bvd | D | Sept. 15, 2019, 5:55 p.m. | OK | GNU C++14 | TESTS | 31 | 342 | 17612800 | 2600 | |
60692593 | I_love_chickpea | D | Sept. 16, 2019, 6 p.m. | OK | GNU C++14 | TESTS | 31 | 452 | 10035200 | 2600 | |
61096480 | liouzhou_101 | D | Sept. 23, 2019, 3:30 a.m. | OK | GNU C++14 | TESTS | 31 | 576 | 17817600 | 2600 | |
60791728 | krijgertje | D | Sept. 18, 2019, 4:32 p.m. | OK | GNU C++14 | TESTS | 31 | 577 | 14438400 | 2600 | |
61096406 | liouzhou_101 | D | Sept. 23, 2019, 3:26 a.m. | OK | GNU C++14 | TESTS | 31 | 577 | 17817600 | 2600 | |
61096220 | liouzhou_101 | D | Sept. 23, 2019, 3:18 a.m. | OK | GNU C++14 | TESTS | 31 | 577 | 17817600 | 2600 | |
66239327 | AghaTizi | D | Dec. 3, 2019, 5:26 p.m. | OK | GNU C++14 | TESTS | 31 | 592 | 58880000 | 2600 | |
60827389 | top34051 | D | Sept. 19, 2019, 5 a.m. | OK | GNU C++14 | TESTS | 31 | 592 | 97996800 | 2600 | |
63108584 | NotNight | D | Oct. 22, 2019, 6:19 a.m. | OK | GNU C++14 | TESTS | 31 | 639 | 15360000 | 2600 | |
61092290 | saketh | D | Sept. 22, 2019, 10:44 p.m. | OK | GNU C++17 | TESTS | 31 | 296 | 51302400 | 2600 | |
60641668 | Nebuchadnezzar kraborak cdkrot | D | Sept. 15, 2019, 3:38 p.m. | OK | GNU C++17 | TESTS | 31 | 327 | 16998400 | 2600 | |
61092138 | saketh | D | Sept. 22, 2019, 10:34 p.m. | OK | GNU C++17 | TESTS | 31 | 327 | 51302400 | 2600 | |
60673067 | ivan100sic | D | Sept. 16, 2019, 11:31 a.m. | OK | GNU C++17 | TESTS | 31 | 374 | 14131200 | 2600 | |
62915861 | vjudge5 | D | Oct. 19, 2019, 8:39 a.m. | OK | GNU C++17 | TESTS | 31 | 405 | 10649600 | 2600 | |
60643203 | Swistakk | D | Sept. 15, 2019, 4:09 p.m. | OK | GNU C++17 | TESTS | 31 | 405 | 15155200 | 2600 | |
60666731 | Elegia | D | Sept. 16, 2019, 8:30 a.m. | OK | GNU C++17 | TESTS | 31 | 420 | 11878400 | 2600 | |
60716309 | pachico | D | Sept. 17, 2019, 10:46 a.m. | OK | GNU C++17 | TESTS | 31 | 498 | 20275200 | 2600 | |
61445132 | maximumSHOT | D | Sept. 28, 2019, 8:38 p.m. | OK | GNU C++17 | TESTS | 31 | 499 | 18944000 | 2600 | |
60642689 | zscoder gamegame Reyna | D | Sept. 15, 2019, 3:58 p.m. | OK | GNU C++17 | TESTS | 31 | 499 | 74035200 | 2600 | |
62746376 | Ahmad | D | Oct. 16, 2019, 9:52 p.m. | OK | Java 8 | TESTS | 31 | 1964 | 21811200 | 2600 | |
62821163 | BiIIy | D | Oct. 17, 2019, 4:50 p.m. | OK | Java 8 | TESTS | 31 | 1965 | 27443200 | 2600 | |
62821567 | BiIIy | D | Oct. 17, 2019, 4:54 p.m. | OK | Java 8 | TESTS | 31 | 1996 | 22220800 | 2600 |
Back to search problems