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 |
|---|---|---|---|---|---|---|
| 175 | Codeforces Round 115 | FINISHED | False | 10800 | 442015223 | April 14, 2012, 8 a.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 70 ) | F | Gnomes of Might and Magic | PROGRAMMING | data structures graphs implementation shortest paths | 3000 |
Vasya plays a popular game the Gnomes of Might and Magic. In this game Vasya manages the kingdom of gnomes, consisting of several castles, connected by bidirectional roads. The kingdom road network has a special form. The kingdom has m main castles a 1 , a 2 , ..., a m , which form the Good Path. This path consists of roads between the castles a i , a i + 1 (1 ≤ i < m ) as well as the road between a m and a 1 . There are no other roads between the castles of the Good Path. In addition, for each pair of neighboring Good Path castles u and v there is exactly one Evil Shortcut — a path that goes along the roads leading from the first castle ( u ) to the second one ( v ) and not having any common vertexes with the Good Path except for the vertexes u and v . It is known that there are no other roads and castles in the kingdom there, that is, every road and every castle lies either on the Good Path or the Evil Shortcut (castles can lie in both of them). In addition, no two Evil Shortcuts have any common castles, different than the castles of the Good Path. At the beginning of each week in the kingdom appears one very bad gnome who stands on one of the roads of the kingdom, and begins to rob the corovans going through this road. One road may accumulate multiple very bad gnomes. Vasya cares about his corovans, so sometimes he sends the Mission of Death from one castle to another. Let's suggest that the Mission of Death should get from castle s to castle t . Then it will move from castle s to castle t , destroying all very bad gnomes, which are on the roads of the Mission's path. Vasya is so tough that his Mission of Death can destroy any number of gnomes on its way. However, Vasya is very kind, so he always chooses such path between castles s and t , following which he will destroy the smallest number of gnomes. If there are multiple such paths, then Vasya chooses the path that contains the smallest number of roads among them. If there are multiple such paths stil |
| Codeforces Round #115 — editorial A-E |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 4430136 | vjudge5 | F | Sept. 8, 2013, 2:09 a.m. | OK | GNU C++ | TESTS | 190 | 530 | 20480000 | 3000 | |
| 1980606 | uncleFun | F | Aug. 6, 2012, 1:27 p.m. | OK | GNU C++ | TESTS | 190 | 530 | 21811200 | 3000 | |
| 3854183 | datoberdzo | F | June 10, 2013, 1:49 p.m. | OK | GNU C++ | TESTS | 190 | 560 | 20480000 | 3000 | |
| 1650739 | mera_sirgiy | F | May 3, 2012, 11:49 a.m. | OK | GNU C++ | TESTS | 190 | 560 | 21811200 | 3000 | |
| 1718330 | beyonder | F | May 25, 2012, 7:03 p.m. | OK | GNU C++ | TESTS | 190 | 580 | 21811200 | 3000 | |
| 40991511 | ReaLNero1 | F | July 31, 2018, 12:41 a.m. | OK | GNU C++ | TESTS | 190 | 590 | 20377600 | 3000 | |
| 6927436 | April. | F | June 20, 2014, 12:04 p.m. | OK | GNU C++ | TESTS | 190 | 590 | 20480000 | 3000 | |
| 1633453 | NotOnlySuccess | F | April 28, 2012, 9:08 a.m. | OK | GNU C++ | TESTS | 190 | 590 | 21811200 | 3000 | |
| 9956256 | vjudge2 | F | Feb. 22, 2015, 6:39 a.m. | OK | GNU C++ | TESTS | 190 | 592 | 20377600 | 3000 | |
| 9956253 | vjudge4 | F | Feb. 22, 2015, 6:39 a.m. | OK | GNU C++ | TESTS | 190 | 592 | 20377600 | 3000 | |
| 4430115 | vjudge1 | F | Sept. 8, 2013, 2:03 a.m. | OK | GNU C++0x | TESTS | 190 | 560 | 20480000 | 3000 | |
| 4432946 | vjudge1 | F | Sept. 8, 2013, 4:17 p.m. | OK | GNU C++0x | TESTS | 190 | 592 | 20480000 | 3000 | |
| 9956261 | vjudge5 | F | Feb. 22, 2015, 6:39 a.m. | OK | GNU C++0x | TESTS | 190 | 622 | 20377600 | 3000 | |
| 3071821 | BJIAJL | F | Feb. 4, 2013, 5:05 p.m. | OK | GNU C++0x | TESTS | 190 | 1372 | 7680000 | 3000 | |
| 3071766 | BJIAJL | F | Feb. 4, 2013, 4:53 p.m. | OK | GNU C++0x | TESTS | 190 | 1404 | 7680000 | 3000 | |
| 54498533 | WOSHIGEPACHONG2 | F | May 22, 2019, 7:06 p.m. | OK | GNU C++11 | TESTS | 190 | 528 | 73318400 | 3000 | |
| 32938157 | xc01 | F | Dec. 5, 2017, 1:33 a.m. | OK | GNU C++11 | TESTS | 190 | 530 | 75468800 | 3000 | |
| 57901650 | lopare | F | July 28, 2019, 3:55 p.m. | OK | GNU C++11 | TESTS | 190 | 560 | 12492800 | 3000 | |
| 57822715 | py_ultron | F | July 27, 2019, 12:49 a.m. | OK | GNU C++11 | TESTS | 190 | 592 | 12492800 | 3000 | |
| 17121565 | freebsdx | F | April 2, 2016, 2:29 a.m. | OK | GNU C++11 | TESTS | 190 | 1466 | 9625600 | 3000 | |
| 10793569 | wjh720 | F | April 20, 2015, 3:02 a.m. | OK | GNU C++11 | TESTS | 190 | 1808 | 45158400 | 3000 | |
| 25373222 | AnVaRsKI | F | March 10, 2017, 5:48 a.m. | OK | GNU C++14 | TESTS | 190 | 624 | 22425600 | 3000 | |
| 35842478 | ______u______ | F | March 2, 2018, 2:54 p.m. | OK | GNU C++14 | TESTS | 190 | 684 | 14438400 | 3000 | |
| 35842459 | ______n______ | F | March 2, 2018, 2:54 p.m. | OK | GNU C++14 | TESTS | 190 | 684 | 14438400 | 3000 | |
| 35842178 | _____i_____ | F | March 2, 2018, 2:49 p.m. | OK | GNU C++14 | TESTS | 190 | 684 | 14438400 | 3000 | |
| 35842167 | _____k_____ | F | March 2, 2018, 2:49 p.m. | OK | GNU C++14 | TESTS | 190 | 684 | 14438400 | 3000 | |
| 35837037 | ______k______ | F | March 2, 2018, 1:05 p.m. | OK | GNU C++14 | TESTS | 190 | 684 | 14438400 | 3000 | |
| 35837035 | ______h______ | F | March 2, 2018, 1:05 p.m. | OK | GNU C++14 | TESTS | 190 | 684 | 14438400 | 3000 | |
| 35836738 | ______i______ | F | March 2, 2018, 12:59 p.m. | OK | GNU C++14 | TESTS | 190 | 684 | 14438400 | 3000 | |
| 35834529 | ______M______ | F | March 2, 2018, 12:05 p.m. | OK | GNU C++14 | TESTS | 190 | 684 | 14438400 | 3000 | |
| 32922197 | cyz666 | F | Dec. 4, 2017, 1:38 p.m. | OK | GNU C++14 | TESTS | 190 | 686 | 14438400 | 3000 | |
| 5345418 | Lxyf | F | Dec. 4, 2013, 2:18 a.m. | OK | MS C++ | TESTS | 190 | 592 | 20787200 | 3000 | |
| 14738020 | Los_Angelos_Laycurse | F | Dec. 10, 2015, 1:52 a.m. | OK | MS C++ | TESTS | 190 | 624 | 39219200 | 3000 | |
| 14738027 | Los_Angelos_Laycurse | F | Dec. 10, 2015, 1:53 a.m. | OK | MS C++ | TESTS | 190 | 654 | 39219200 | 3000 |
Back to search problems