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 |
|---|---|---|---|---|---|---|
| 1621 | Hello 2022 | FINISHED | False | 8100 | 135185123 | Jan. 3, 2022, 2:35 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 199 ) | H | Trains and Airplanes | PROGRAMMING | graphs shortest paths |
Railway network of one city consists of (n) stations connected by (n-1) roads. These stations and roads forms a tree. Station (1) is a city center. For each road you know the time trains spend to pass this road. You can assume that trains don't spend time on stops. Let's define (dist(v)) as the time that trains spend to get from the station (v) to the station (1). This railway network is splitted into zones named by first (k) capital latin letters. The zone of the (i)-th station is (z_i). City center is in the zone A. For all other stations it is guaranteed that the first station on the road from this station to the city center is either in the same zone or in the zone with lexicographically smaller name. Any road is completely owned by the zone of the most distant end from the city center. Tourist will arrive at the airport soon and then he will go to the city center. Here's how the trip from station (v) to station (1) happends: At the moment (0), tourist enters the train that follows directly from the station (v) to the station (1). The trip will last for (dist(v)) minutes. Tourist can buy tickets for any subset of zones at any moment. Ticket for zone (i) costs (pass_i) euro. Every (T) minutes since the start of the trip (that is, at the moments (T, 2T, \ldots)) the control system will scan tourist. If at the moment of scan tourist is in the zone (i) without zone (i) ticket, he should pay (fine_i) euro. Formally, the zone of tourist is determined in the following way: If tourist is at the station (1), then he already at the city center so he shouldn't pay fine. If tourist is at the station (u \neq 1), then he is in the zone (z_u). If tourist is moving from the station (x) to the station (y) that are directly connected by road, then he is in the zone (z_x). Note, that tourist can pay fine multiple times in the same zone. If tourist is at the sta |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 141574314 | Radewoosh | H | Jan. 3, 2022, 5:47 p.m. | OK | GNU C++14 | TESTS | 62 | 1591 | 258048000 | ||
| 141598236 | HideOneMan2002 | H | Jan. 4, 2022, 3:33 a.m. | OK | GNU C++17 | TESTS | 62 | 967 | 147660800 | ||
| 141572824 | IgorI | H | Jan. 3, 2022, 5:35 p.m. | OK | GNU C++17 | TESTS | 62 | 967 | 147660800 | ||
| 141587993 | Mad_Dark | H | Jan. 3, 2022, 9:19 p.m. | OK | GNU C++17 | TESTS | 62 | 1232 | 309350400 | ||
| 141588021 | Farooq_ta | H | Jan. 3, 2022, 9:20 p.m. | OK | GNU C++17 | TESTS | 62 | 1279 | 309350400 | ||
| 141572780 | IgorI | H | Jan. 3, 2022, 5:35 p.m. | OK | GNU C++17 | TESTS | 62 | 1622 | 30412800 | ||
| 141573654 | ecnerwala | H | Jan. 3, 2022, 5:42 p.m. | OK | GNU C++17 (64) | TESTS | 62 | 654 | 181862400 | ||
| 141568613 | maroonrk | H | Jan. 3, 2022, 4:49 p.m. | OK | GNU C++17 (64) | TESTS | 62 | 1294 | 179097600 | ||
| 141571273 | Benq | H | Jan. 3, 2022, 5:26 p.m. | OK | GNU C++17 (64) | TESTS | 62 | 3447 | 198758400 | ||
| 141595205 | heno239 | H | Jan. 4, 2022, 2:09 a.m. | OK | GNU C++20 (64) | TESTS | 62 | 2152 | 175308800 |
Back to search problems