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 |
|---|---|---|---|---|---|---|
| 780 | Технокубок 2017 - Финал (только для онсайт-финалистов) | FINISHED | False | 10800 | 287700323 | March 5, 2017, 9:15 a.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 1262 ) | F | Axel and Marston in Bitland | PROGRAMMING | bitmasks dp graphs matrices | 2800 |
A couple of friends, Axel and Marston are travelling across the country of Bitland. There are n towns in Bitland, with some pairs of towns connected by one-directional roads. Each road in Bitland is either a pedestrian road or a bike road. There can be multiple roads between any pair of towns, and may even be a road from a town to itself. However, no pair of roads shares the starting and the destination towns along with their types simultaneously. The friends are now located in the town 1 and are planning the travel route. Axel enjoys walking, while Marston prefers biking. In order to choose a route diverse and equally interesting for both friends, they have agreed upon the following procedure for choosing the road types during the travel: The route starts with a pedestrian route. Suppose that a beginning of the route is written in a string s of letters P (pedestrain road) and B (biking road). Then, the string is appended to s , where stands for the string s with each character changed to opposite (that is, all pedestrian roads changed to bike roads, and vice versa). In the first few steps the route will look as follows: P, PB, PBBP, PBBPBPPB, PBBPBPPBBPPBPBBP, and so on. After that the friends start travelling from the town 1 via Bitlandian roads, choosing the next road according to the next character of their route type each time. If it is impossible to choose the next road, the friends terminate their travel and fly home instead. Help the friends to find the longest possible route that can be travelled along roads of Bitland according to the road types choosing procedure described above. If there is such a route with more than 10 18 roads in it, print -1 instead. The first line contains two integers n and m ( 1 ≤ n ≤ 500 , 0 ≤ m ≤ 2 n 2 ) — the number of towns and roads in Bitland respectively. Next m lines describe the roads. i -th of these lines contains three integers v i , u i and t i ( 1 ≤ v i , u i ≤ n , 0 ≤ t i ≤ 1 ), where v i and u i denote sta |
| Technocup 2017 Finals and Codeforces Round #403 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 25481188 | jkxjkx1031 | F | March 14, 2017, 4:04 p.m. | OK | GNU C | TESTS | 27 | 873 | 148480000 | 2800 | |
| 40982092 | ReaLNero1 | F | July 30, 2018, 6:16 p.m. | OK | GNU C++ | TESTS | 27 | 327 | 3993600 | 2800 | |
| 30047332 | CSHwang | F | Sept. 4, 2017, 5:32 a.m. | OK | GNU C++ | TESTS | 27 | 452 | 3993600 | 2800 | |
| 25776187 | zzb111 | F | March 24, 2017, 2:44 p.m. | OK | GNU C++ | TESTS | 27 | 467 | 6451200 | 2800 | |
| 27148235 | rasiman5325 | F | May 16, 2017, 2:03 a.m. | OK | GNU C++ | TESTS | 27 | 468 | 4403200 | 2800 | |
| 25602560 | Gasai_Yuno_2nd | F | March 18, 2017, 2:19 p.m. | OK | GNU C++ | TESTS | 27 | 561 | 6246400 | 2800 | |
| 25669977 | limuyang01 | F | March 20, 2017, 3:33 p.m. | OK | GNU C++ | TESTS | 27 | 1029 | 6246400 | 2800 | |
| 26042028 | SpoonsAN | F | April 1, 2017, 4:06 a.m. | OK | GNU C++ | TESTS | 27 | 2058 | 40243200 | 2800 | |
| 26042134 | SpoonsAN | F | April 1, 2017, 4:13 a.m. | OK | GNU C++ | TESTS | 27 | 2074 | 40243200 | 2800 | |
| 64497152 | C20192413 | F | Nov. 8, 2019, 1 a.m. | OK | GNU C++11 | TESTS | 27 | 280 | 4608000 | 2800 | |
| 49669944 | qihongzhou | F | Feb. 9, 2019, 4:21 p.m. | OK | GNU C++11 | TESTS | 27 | 295 | 4096000 | 2800 | |
| 51324621 | yama | F | March 15, 2019, 9:05 a.m. | OK | GNU C++11 | TESTS | 27 | 296 | 4096000 | 2800 | |
| 47606707 | luogu_bot3 | F | Dec. 28, 2018, 5:33 a.m. | OK | GNU C++11 | TESTS | 27 | 296 | 4198400 | 2800 | |
| 51324788 | luogu_bot2 | F | March 15, 2019, 9:10 a.m. | OK | GNU C++11 | TESTS | 27 | 311 | 4096000 | 2800 | |
| 51324320 | yama | F | March 15, 2019, 8:56 a.m. | OK | GNU C++11 | TESTS | 27 | 311 | 4096000 | 2800 | |
| 49391586 | codesonic | F | Feb. 3, 2019, 10:12 a.m. | OK | GNU C++11 | TESTS | 27 | 311 | 4096000 | 2800 | |
| 57745828 | jzh817 | F | July 25, 2019, 12:59 p.m. | OK | GNU C++11 | TESTS | 27 | 312 | 4096000 | 2800 | |
| 51324684 | yama | F | March 15, 2019, 9:07 a.m. | OK | GNU C++11 | TESTS | 27 | 312 | 4096000 | 2800 | |
| 51324590 | yama | F | March 15, 2019, 9:05 a.m. | OK | GNU C++11 | TESTS | 27 | 312 | 4096000 | 2800 | |
| 34514834 | nizam1998 1e13 | F | Jan. 24, 2018, 11:31 a.m. | OK | GNU C++14 | TESTS | 27 | 389 | 10342400 | 2800 | |
| 25824088 | LordVoldebug | F | March 26, 2017, 4:51 p.m. | OK | GNU C++14 | TESTS | 27 | 436 | 5836800 | 2800 | |
| 25391827 | 1726tgyeuva | F | March 11, 2017, 2:31 a.m. | OK | GNU C++14 | TESTS | 27 | 436 | 5836800 | 2800 | |
| 25824156 | toster1287 | F | March 26, 2017, 4:54 p.m. | OK | GNU C++14 | TESTS | 27 | 451 | 5836800 | 2800 | |
| 27196532 | cabinfever | F | May 18, 2017, 12:37 p.m. | OK | GNU C++14 | TESTS | 27 | 499 | 4608000 | 2800 | |
| 29677247 | LEOLEI | F | Aug. 22, 2017, 8:08 a.m. | OK | GNU C++14 | TESTS | 27 | 530 | 5017600 | 2800 | |
| 25242331 | Constantius | F | March 5, 2017, 11:12 a.m. | OK | GNU C++14 | TESTS | 27 | 545 | 6041600 | 2800 | |
| 25493664 | Marco_L_T | F | March 15, 2017, 9:03 a.m. | OK | GNU C++14 | TESTS | 27 | 561 | 5836800 | 2800 | |
| 67463443 | holmium01 | F | Dec. 23, 2019, 10:08 a.m. | OK | GNU C++14 | TESTS | 27 | 592 | 4915200 | 2800 | |
| 25404974 | ikovrigin | F | March 11, 2017, 12:42 p.m. | OK | GNU C++14 | TESTS | 27 | 592 | 5939200 | 2800 | |
| 64467588 | Lower_Rating | F | Nov. 7, 2019, 12:10 p.m. | OK | GNU C++17 | TESTS | 27 | 482 | 3993600 | 2800 | |
| 49857579 | 0442A403 | F | Feb. 13, 2019, 7:58 a.m. | OK | GNU C++17 | TESTS | 27 | 498 | 3891200 | 2800 | |
| 49857710 | 0442A403 | F | Feb. 13, 2019, 8:02 a.m. | OK | GNU C++17 | TESTS | 27 | 530 | 3891200 | 2800 | |
| 49857643 | 0442A403 | F | Feb. 13, 2019, 8 a.m. | OK | GNU C++17 | TESTS | 27 | 530 | 3891200 | 2800 | |
| 50464948 | MazyCrazy | F | Feb. 24, 2019, 7:21 p.m. | OK | GNU C++17 | TESTS | 27 | 545 | 3891200 | 2800 | |
| 57856961 | al24242 | F | July 27, 2019, 3:32 p.m. | OK | GNU C++17 | TESTS | 27 | 545 | 4198400 | 2800 | |
| 56842053 | Fulisike | F | July 11, 2019, 11:58 a.m. | OK | GNU C++17 | TESTS | 27 | 608 | 3993600 | 2800 | |
| 41418535 | crathva | F | Aug. 10, 2018, 6:08 a.m. | OK | GNU C++17 | TESTS | 27 | 623 | 3891200 | 2800 | |
| 65828953 | 8-_-8 | F | Nov. 27, 2019, 1:38 p.m. | OK | GNU C++17 | TESTS | 27 | 701 | 30822400 | 2800 | |
| 47438178 | Shayan.Kashefi_A | F | Dec. 23, 2018, 8:47 p.m. | OK | GNU C++17 | TESTS | 27 | 733 | 4300800 | 2800 | |
| 25243116 | krock21 | F | March 5, 2017, 11:32 a.m. | OK | MS C++ | TESTS | 27 | 1123 | 6963200 | 2800 | |
| 25243244 | 228_NAGIBDTOR_4x20 | F | March 5, 2017, 11:35 a.m. | OK | MS C++ | TESTS | 27 | 2277 | 34406400 | 2800 |
Back to search problems