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 |
---|---|---|---|---|---|---|
1100 | Codeforces Round 532 (Div. 2) | FINISHED | False | 7200 | 190135524 | Jan. 13, 2019, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 2419 ) | E | Andrew and Taxi | PROGRAMMING | binary search dfs and similar graphs | 2200 |
B"Andrew prefers taxi to other means of transport, but recently most taxi drivers have been acting inappropriately. In order to earn more money, taxi drivers started to drive in circles. Roads in Andrew's city are one-way, and people are not necessary able to travel from one part to another, but it pales in comparison to insidious taxi drivers. The mayor of the city decided to change the direction of certain roads so that the taxi drivers wouldn't be able to increase the cost of the trip endlessly. More formally, if the taxi driver is on a certain crossroads, they wouldn't be able to reach it again if he performs a nonzero trip. Traffic controllers are needed in order to change the direction the road goes. For every road it is known how many traffic controllers are needed to change the direction of the road to the opposite one. It is allowed to change the directions of roads one by one, meaning that each traffic controller can participate in reversing two or more roads. You need to calculate the minimum number of traffic controllers that you need to hire to perform the task and the list of the roads that need to be reversed. The first line contains two integers n and m ( 2 <= q n <= q 100 ,000 , 1 <= q m <= q 100 ,000 ) -- the number of crossroads and the number of roads in the city, respectively. Each of the following m lines contain three integers u_{i} , v_{i} and c_{i} ( 1 <= q u_{i}, v_{i} <= q n , 1 <= q c_{i} <= q 10^9 , u_{i} ne v_{i} ) -- the crossroads the road starts at, the crossroads the road ends at and the number of traffic controllers required to reverse this road. In the first line output two integers the minimal amount of traffic controllers required to complete the task and amount of roads k which should be reversed. k should not be minimized. In the next line output k integers separated by spaces -- numbers of roads, the directions of which should be revers"... |
Unofficial Tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
48398849 | fluffyowl | E | Jan. 14, 2019, 7:21 p.m. | OK | D | TESTS | 95 | 1216 | 53248000 | 2200 | |
48466766 | ruhan.habib39 | E | Jan. 16, 2019, 5:40 p.m. | OK | GNU C11 | TESTS | 95 | 234 | 11264000 | 2200 | |
48467052 | ruhan.habib39 | E | Jan. 16, 2019, 5:49 p.m. | OK | GNU C11 | TESTS | 95 | 248 | 11468800 | 2200 | |
48423617 | ExplosionMagic | E | Jan. 15, 2019, 1:52 p.m. | OK | GNU C11 | TESTS | 95 | 264 | 4608000 | 2200 | |
48349786 | rainboy | E | Jan. 13, 2019, 3:49 p.m. | OK | GNU C11 | TESTS | 95 | 311 | 5222400 | 2200 | |
48390629 | Zechariah_2001 | E | Jan. 14, 2019, 3:09 p.m. | OK | GNU C++11 | TESTS | 95 | 78 | 5427200 | 2200 | |
48367642 | Dilute | E | Jan. 14, 2019, 12:27 a.m. | OK | GNU C++11 | TESTS | 95 | 93 | 4403200 | 2200 | |
48367654 | Dilute | E | Jan. 14, 2019, 12:28 a.m. | OK | GNU C++11 | TESTS | 95 | 93 | 4403200 | 2200 | |
48348933 | LJC00118 | E | Jan. 13, 2019, 3:44 p.m. | OK | GNU C++11 | TESTS | 95 | 93 | 5222400 | 2200 | |
48384255 | LJC00118 | E | Jan. 14, 2019, 12:07 p.m. | OK | GNU C++11 | TESTS | 95 | 93 | 5222400 | 2200 | |
48390423 | Zechariah_2001 | E | Jan. 14, 2019, 3:03 p.m. | OK | GNU C++11 | TESTS | 95 | 93 | 5427200 | 2200 | |
50064799 | LRL52 | E | Feb. 17, 2019, 2:18 p.m. | OK | GNU C++11 | TESTS | 95 | 93 | 7168000 | 2200 | |
50079133 | LRL52 | E | Feb. 18, 2019, 2:09 a.m. | OK | GNU C++11 | TESTS | 95 | 93 | 7168000 | 2200 | |
50079113 | LRL52 | E | Feb. 18, 2019, 2:08 a.m. | OK | GNU C++11 | TESTS | 95 | 93 | 7168000 | 2200 | |
50079235 | LRL52 | E | Feb. 18, 2019, 2:12 a.m. | OK | GNU C++11 | TESTS | 95 | 93 | 7270400 | 2200 | |
48654294 | ReaLNero1 | E | Jan. 21, 2019, 1:28 a.m. | OK | GNU C++14 | TESTS | 95 | 93 | 21913600 | 2200 | |
48348223 | STO_kczno1 | E | Jan. 13, 2019, 3:39 p.m. | OK | GNU C++14 | TESTS | 95 | 93 | 21913600 | 2200 | |
48686605 | PoomrokC | E | Jan. 21, 2019, 3:35 p.m. | OK | GNU C++14 | TESTS | 95 | 109 | 5939200 | 2200 | |
51465914 | WstOne | E | March 19, 2019, 1:25 a.m. | OK | GNU C++14 | TESTS | 95 | 124 | 5324800 | 2200 | |
57294006 | Wolf. | E | July 18, 2019, 6:10 p.m. | OK | GNU C++14 | TESTS | 95 | 124 | 5324800 | 2200 | |
48774097 | Prime21 | E | Jan. 23, 2019, 2:42 a.m. | OK | GNU C++14 | TESTS | 95 | 124 | 5427200 | 2200 | |
48472876 | krijgertje | E | Jan. 16, 2019, 10:46 p.m. | OK | GNU C++14 | TESTS | 95 | 124 | 5836800 | 2200 | |
49444548 | wleung_bvg | E | Feb. 4, 2019, 1:25 a.m. | OK | GNU C++14 | TESTS | 95 | 124 | 7577600 | 2200 | |
48351341 | meaningIess | E | Jan. 13, 2019, 3:59 p.m. | OK | GNU C++14 | TESTS | 95 | 124 | 7884800 | 2200 | |
48349276 | wleung_bvg | E | Jan. 13, 2019, 3:46 p.m. | OK | GNU C++14 | TESTS | 95 | 124 | 8908800 | 2200 | |
48367113 | ankeet | E | Jan. 13, 2019, 11:44 p.m. | OK | GNU C++17 | TESTS | 95 | 108 | 5632000 | 2200 | |
67130904 | kgcurry59 | E | Dec. 18, 2019, midnight | OK | GNU C++17 | TESTS | 95 | 124 | 4608000 | 2200 | |
49947023 | mohamedeltair | E | Feb. 15, 2019, 12:30 p.m. | OK | GNU C++17 | TESTS | 95 | 124 | 5427200 | 2200 | |
48368077 | Rvess | E | Jan. 14, 2019, 1:05 a.m. | OK | GNU C++17 | TESTS | 95 | 124 | 5632000 | 2200 | |
48368017 | Rvess | E | Jan. 14, 2019, 12:59 a.m. | OK | GNU C++17 | TESTS | 95 | 124 | 5939200 | 2200 | |
48374934 | vhnvn | E | Jan. 14, 2019, 7:04 a.m. | OK | GNU C++17 | TESTS | 95 | 124 | 8396800 | 2200 | |
48388994 | indy256 | E | Jan. 14, 2019, 2:24 p.m. | OK | GNU C++17 | TESTS | 95 | 139 | 4812800 | 2200 | |
48404027 | sggutier | E | Jan. 15, 2019, 1:35 a.m. | OK | GNU C++17 | TESTS | 95 | 139 | 5734400 | 2200 | |
48580935 | .tx | E | Jan. 19, 2019, 4:37 p.m. | OK | GNU C++17 | TESTS | 95 | 139 | 5836800 | 2200 | |
48393880 | another_strike | E | Jan. 14, 2019, 4:41 p.m. | OK | GNU C++17 | TESTS | 95 | 139 | 6144000 | 2200 | |
48359259 | Martynas | E | Jan. 13, 2019, 6:01 p.m. | OK | Go | TESTS | 95 | 732 | 23142400 | 2200 | |
48567696 | tsumit023 | E | Jan. 19, 2019, 10:25 a.m. | OK | Java 8 | TESTS | 95 | 327 | 11878400 | 2200 | |
48468194 | revanthreddy85 | E | Jan. 16, 2019, 6:26 p.m. | OK | Java 8 | TESTS | 95 | 420 | 5529600 | 2200 | |
48358662 | Dukkha | E | Jan. 13, 2019, 5:55 p.m. | OK | Java 8 | TESTS | 95 | 468 | 4096000 | 2200 | |
48351347 | alexyz | E | Jan. 13, 2019, 3:59 p.m. | OK | Java 8 | TESTS | 95 | 483 | 13824000 | 2200 | |
48380197 | xodiac | E | Jan. 14, 2019, 10:04 a.m. | OK | Java 8 | TESTS | 95 | 483 | 16486400 | 2200 | |
48378675 | aman28rwt | E | Jan. 14, 2019, 9:11 a.m. | OK | Java 8 | TESTS | 95 | 499 | 0 | 2200 | |
48463438 | bazinga84 | E | Jan. 16, 2019, 3:56 p.m. | OK | Java 8 | TESTS | 95 | 514 | 0 | 2200 | |
48343871 | uwi | E | Jan. 13, 2019, 3:17 p.m. | OK | Java 8 | TESTS | 95 | 514 | 204800 | 2200 | |
50067852 | vjudge5 | E | Feb. 17, 2019, 3:50 p.m. | OK | Java 8 | TESTS | 95 | 514 | 5120000 | 2200 | |
48413519 | wadissimo | E | Jan. 15, 2019, 9:06 a.m. | OK | Java 8 | TESTS | 95 | 576 | 10444800 | 2200 | |
49028612 | Quaternion | E | Jan. 26, 2019, 8:27 p.m. | OK | Kotlin | TESTS | 95 | 1902 | 29900800 | 2200 | |
48360251 | mircea85 | E | Jan. 13, 2019, 6:19 p.m. | OK | Mono C# | TESTS | 95 | 577 | 30003200 | 2200 | |
48716834 | selpo | E | Jan. 22, 2019, 11:41 a.m. | OK | Mono C# | TESTS | 95 | 701 | 38400000 | 2200 | |
48366781 | omikad | E | Jan. 13, 2019, 11:12 p.m. | OK | Mono C# | TESTS | 95 | 1076 | 28979200 | 2200 | |
48352104 | math957963 | E | Jan. 13, 2019, 4:04 p.m. | OK | MS C++ | TESTS | 95 | 140 | 9011200 | 2200 | |
48593846 | dyxx | E | Jan. 20, 2019, 5:03 a.m. | OK | MS C++ | TESTS | 95 | 140 | 9011200 | 2200 | |
48353326 | r57shell | E | Jan. 13, 2019, 4:11 p.m. | OK | MS C++ | TESTS | 95 | 265 | 10137600 | 2200 | |
49897485 | vjudge1 | E | Feb. 14, 2019, 7:39 a.m. | OK | MS C++ | TESTS | 95 | 390 | 39628800 | 2200 | |
65530413 | vjudge2 | E | Nov. 22, 2019, 12:13 p.m. | OK | MS C++ | TESTS | 95 | 420 | 5529600 | 2200 | |
58432320 | wawahaha | E | Aug. 7, 2019, 12:24 p.m. | OK | MS C++ | TESTS | 95 | 421 | 5529600 | 2200 | |
49897624 | vjudge4 | E | Feb. 14, 2019, 7:43 a.m. | OK | MS C++ | TESTS | 95 | 732 | 71680000 | 2200 | |
68648546 | vjudge1 | E | Jan. 12, 2020, 9:57 a.m. | OK | MS C++ 2017 | TESTS | 95 | 171 | 36044800 | 2200 | |
68648488 | ganyu | E | Jan. 12, 2020, 9:55 a.m. | OK | MS C++ 2017 | TESTS | 95 | 171 | 36044800 | 2200 | |
66381525 | vjudge5 | E | Dec. 6, 2019, 5:49 a.m. | OK | MS C++ 2017 | TESTS | 95 | 234 | 5222400 | 2200 | |
66381397 | zhangwen123 | E | Dec. 6, 2019, 5:46 a.m. | OK | MS C++ 2017 | TESTS | 95 | 249 | 5222400 | 2200 | |
48699262 | sk0 | E | Jan. 22, 2019, 1:38 a.m. | OK | Ocaml | TESTS | 95 | 514 | 17305600 | 2200 | |
48398015 | pajenegod | E | Jan. 14, 2019, 6:48 p.m. | OK | PyPy 2 | TESTS | 95 | 717 | 29388800 | 2200 | |
48398138 | pajenegod | E | Jan. 14, 2019, 6:52 p.m. | OK | PyPy 2 | TESTS | 95 | 794 | 28467200 | 2200 | |
48397856 | pajenegod | E | Jan. 14, 2019, 6:43 p.m. | OK | PyPy 2 | TESTS | 95 | 795 | 28262400 | 2200 | |
48345476 | alexwice | E | Jan. 13, 2019, 3:25 p.m. | OK | PyPy 2 | TESTS | 95 | 1746 | 64307200 | 2200 | |
49885080 | gatsko | E | Feb. 13, 2019, 8:36 p.m. | OK | PyPy 2 | TESTS | 95 | 1778 | 45568000 | 2200 | |
48356336 | pajenegod | E | Jan. 13, 2019, 4:30 p.m. | OK | PyPy 2 | TESTS | 95 | 1949 | 51609600 | 2200 | |
48448070 | nik-in-au | E | Jan. 16, 2019, 8:37 a.m. | OK | PyPy 3 | TESTS | 95 | 1372 | 48640000 | 2200 | |
48439794 | okumura | E | Jan. 16, 2019, 1:49 a.m. | OK | PyPy 3 | TESTS | 95 | 1903 | 47616000 | 2200 | |
59942698 | sansen | E | Sept. 3, 2019, noon | OK | Rust | TESTS | 95 | 233 | 11980800 | 2200 |
Back to search problems