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 |
|---|---|---|---|---|---|---|
| 725 | Canada Cup 2016 | FINISHED | False | 9000 | 299343285 | Oct. 22, 2016, 3:05 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 179 ) | G | Messages on a Tree | PROGRAMMING | 3300 |
Alice and Bob are well-known for sending messages to each other. This time you have a rooted tree with Bob standing in the root node and copies of Alice standing in each of the other vertices. The root node has number 0 , the rest are numbered 1 through n . At some moments of time some copies of Alice want to send a message to Bob and receive an answer. We will call this copy the initiator . The process of sending a message contains several steps: The initiator sends the message to the person standing in the parent node and begins waiting for the answer. When some copy of Alice receives a message from some of her children nodes, she sends the message to the person standing in the parent node and begins waiting for the answer. When Bob receives a message from some of his child nodes, he immediately sends the answer to the child node where the message came from. When some copy of Alice (except for initiator) receives an answer she is waiting for, she immediately sends it to the child vertex where the message came from. When the initiator receives the answer she is waiting for, she doesn't send it to anybody. There is a special case: a copy of Alice can't wait for two answers at the same time, so if some copy of Alice receives a message from her child node while she already waits for some answer, she rejects the message and sends a message saying this back to the child node where the message came from. Then the copy of Alice in the child vertex processes this answer as if it was from Bob. The process of sending a message to a parent node or to a child node is instant but a receiver (a parent or a child) gets a message after 1 second. If some copy of Alice receives several messages from child nodes at the same moment while she isn't waiting for an answer, she processes the message from the initiator with the smallest number and rejects all the rest. If some copy of Alice receives messages from children nodes and also receives the answer she is waiting for at t |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 36278538 | zhan8855 | G | March 14, 2018, 2:11 p.m. | OK | GNU C++ | TESTS | 48 | 576 | 74752000 | 3300 | |
| 36288407 | _SHENZHEBEI_ | G | March 15, 2018, 12:20 a.m. | OK | GNU C++ | TESTS | 48 | 686 | 18124800 | 3300 | |
| 22093889 | aufeas | G | Nov. 7, 2016, 12:17 p.m. | OK | GNU C++ | TESTS | 48 | 733 | 15052800 | 3300 | |
| 22637286 | Jin_Haonan | G | Dec. 1, 2016, 10:52 a.m. | OK | GNU C++ | TESTS | 48 | 904 | 26214400 | 3300 | |
| 21808159 | problem_destroyer420 | G | Oct. 26, 2016, 9:10 p.m. | OK | GNU C++ | TESTS | 48 | 904 | 30412800 | 3300 | |
| 26603117 | jiyutian | G | April 23, 2017, 11:52 a.m. | OK | GNU C++ | TESTS | 48 | 920 | 30720000 | 3300 | |
| 41922885 | luogu_bot1 | G | Aug. 21, 2018, 5:46 a.m. | OK | GNU C++ | TESTS | 48 | 1045 | 27238400 | 3300 | |
| 41923070 | luogu_bot5 | G | Aug. 21, 2018, 5:53 a.m. | OK | GNU C++ | TESTS | 48 | 1076 | 96153600 | 3300 | |
| 42148159 | luogu_bot2 | G | Aug. 27, 2018, 10:20 a.m. | OK | GNU C++ | TESTS | 48 | 1107 | 32051200 | 3300 | |
| 41939083 | luogu_bot3 | G | Aug. 21, 2018, 2:21 p.m. | OK | GNU C++ | TESTS | 48 | 1122 | 32051200 | 3300 | |
| 62258217 | Backseat-Stargazer | G | Oct. 10, 2019, 11:25 a.m. | OK | GNU C++11 | TESTS | 48 | 202 | 53145600 | 3300 | |
| 60594462 | Lagoon_ | G | Sept. 15, 2019, 4:35 a.m. | OK | GNU C++11 | TESTS | 48 | 234 | 10444800 | 3300 | |
| 36265720 | HeZiying | G | March 14, 2018, 5:44 a.m. | OK | GNU C++11 | TESTS | 48 | 312 | 37171200 | 3300 | |
| 40983430 | ReaLNero1 | G | July 30, 2018, 6:51 p.m. | OK | GNU C++11 | TESTS | 48 | 327 | 35123200 | 3300 | |
| 22613253 | Remilia-Scarlet | G | Nov. 30, 2016, 3:16 a.m. | OK | GNU C++11 | TESTS | 48 | 327 | 40857600 | 3300 | |
| 36288353 | yasugongshang | G | March 15, 2018, 12:10 a.m. | OK | GNU C++11 | TESTS | 48 | 343 | 37273600 | 3300 | |
| 36288563 | yasugongshang | G | March 15, 2018, 12:50 a.m. | OK | GNU C++11 | TESTS | 48 | 436 | 26931200 | 3300 | |
| 21899877 | mateusz | G | Oct. 30, 2016, 8:52 p.m. | OK | GNU C++11 | TESTS | 48 | 468 | 41267200 | 3300 | |
| 36289374 | emoairx | G | March 15, 2018, 2:48 a.m. | OK | GNU C++11 | TESTS | 48 | 514 | 47718400 | 3300 | |
| 62107914 | romiqi | G | Oct. 8, 2019, 11:23 a.m. | OK | GNU C++11 | TESTS | 48 | 607 | 21606400 | 3300 | |
| 62248991 | idxcalcal | G | Oct. 10, 2019, 8:29 a.m. | OK | GNU C++14 | TESTS | 48 | 186 | 7475200 | 3300 | |
| 23372906 | Ali.Pi | G | Dec. 28, 2016, 7:47 a.m. | OK | GNU C++14 | TESTS | 48 | 296 | 12390400 | 3300 | |
| 21837492 | Chortos-2 | G | Oct. 28, 2016, 2 a.m. | OK | GNU C++14 | TESTS | 48 | 327 | 10444800 | 3300 | |
| 24096510 | swetank | G | Jan. 24, 2017, 5:30 p.m. | OK | GNU C++14 | TESTS | 48 | 327 | 12390400 | 3300 | |
| 36261657 | aid | G | March 13, 2018, 9:57 p.m. | OK | GNU C++14 | TESTS | 48 | 732 | 41267200 | 3300 | |
| 39358379 | XingGeRuCi | G | June 18, 2018, 2:30 p.m. | OK | GNU C++14 | TESTS | 48 | 748 | 23961600 | 3300 | |
| 44755744 | dengyixuan | G | Oct. 24, 2018, 12:44 a.m. | OK | GNU C++14 | TESTS | 48 | 748 | 33792000 | 3300 | |
| 52642904 | rainy_season | G | April 12, 2019, 1:14 p.m. | OK | GNU C++14 | TESTS | 48 | 810 | 30412800 | 3300 | |
| 52594455 | cz_xuyixuan | G | April 11, 2019, 8:04 a.m. | OK | GNU C++14 | TESTS | 48 | 857 | 41574400 | 3300 | |
| 52775924 | Shedneryan | G | April 15, 2019, 12:01 p.m. | OK | GNU C++14 | TESTS | 48 | 873 | 33792000 | 3300 | |
| 69720681 | gongsuidashen | G | Jan. 29, 2020, 10:32 a.m. | OK | GNU C++17 | TESTS | 48 | 482 | 35225600 | 3300 | |
| 42454510 | teapotd | G | Sept. 4, 2018, 10:30 a.m. | OK | GNU C++17 | TESTS | 48 | 592 | 35123200 | 3300 | |
| 52646198 | __JuRuo | G | April 12, 2019, 2:37 p.m. | OK | GNU C++17 | TESTS | 48 | 857 | 58265600 | 3300 | |
| 52646159 | __JuRuo | G | April 12, 2019, 2:36 p.m. | OK | GNU C++17 | TESTS | 48 | 904 | 58163200 | 3300 | |
| 52646370 | __JuRuo | G | April 12, 2019, 2:41 p.m. | OK | GNU C++17 | TESTS | 48 | 935 | 58265600 | 3300 | |
| 57124775 | Benq | G | July 16, 2019, 3:32 a.m. | OK | GNU C++17 | TESTS | 48 | 1076 | 26419200 | 3300 | |
| 52635084 | jah_melon | G | April 12, 2019, 9:29 a.m. | OK | GNU C++17 | TESTS | 48 | 1200 | 38502400 | 3300 | |
| 21887191 | Los_Angelos_Laycurse | G | Oct. 30, 2016, 6:16 a.m. | OK | MS C++ | TESTS | 48 | 935 | 29798400 | 3300 |
Back to search problems