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 |
|---|---|---|---|---|---|---|
| ( 132 ) | H | Intranet of Buses | PROGRAMMING | binary search geometry implementation two pointers | 3000 |
A new bus route is opened in the city . The route is a closed polygon line in the place, with all segments parallel to one of the axes. m buses will operate on the route. All buses move in a loop along the route in the same direction with equal constant velocities (stopping times are negligible in this problem). Buses start their movement in the first vertex of the route with equal interval. Suppose that T is the total time for a single bus to travel the whole loop of the route. Then, the bus 1 starts moving at time 0, the bus 2 starts at time T / m , the bus 3 starts at time 2 T / m , and so on; finally, the bus m starts moving at time ( m - 1) T / m . Thus, all intervals between pairs of consecutive buses (including the interval between the last and the first bus) are equal. Buses can communicate with each other via wireless transmitters of equal power. If the transmitters have power D , then only buses within distance D of each other can communicate. The buses are also equipped with a distributed system of schedule tracking. For all buses to stick to the schedule, the system has to synchronize the necessary data between all buses from time to time. At the moment of synchronization, the bus 1 communicates with the bus 2, the bus 2 — with bus 3, and so on; also, the bus m communicates with the bus 1. As a research employee, you are tasked with finding the smallest value of D such that it is possible to find a time moment to perform synchronization once all buses have started moving. The first line contains two integers n and m ( 2 ≤ n , m ≤ 10 5 ) — the number of vertices of the polygonal line, and the number of buses respectively. Next n lines describe the vertices of the route in the traversing order. Each of these lines contains two integers x i , y i ( - 1000 ≤ x i , y i ≤ 1000 ) — coordinates of respective vertex. It is guaranteed that each leg of the route (including the leg between the last and the first vertex) is paralles to one of the coordinate |
| 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 25497540 | 071-19538-08-daniyar | H | March 15, 2017, 12:18 p.m. | OK | GNU C++ | TESTS | 55 | 3276 | 19865600 | 3000 | |
| 25402975 | Gizzi | H | March 11, 2017, 11:35 a.m. | OK | GNU C++ | TESTS | 55 | 3322 | 19865600 | 3000 | |
| 46843759 | 1919810 | H | Dec. 10, 2018, 9:33 a.m. | OK | GNU C++11 | TESTS | 55 | 218 | 33177600 | 3000 | |
| 46843752 | 1919810 | H | Dec. 10, 2018, 9:33 a.m. | OK | GNU C++11 | TESTS | 55 | 233 | 33177600 | 3000 | |
| 46839647 | 1919810 | H | Dec. 10, 2018, 6:29 a.m. | OK | GNU C++11 | TESTS | 55 | 249 | 33177600 | 3000 | |
| 46844313 | 1919810 | H | Dec. 10, 2018, 9:57 a.m. | OK | GNU C++11 | TESTS | 55 | 374 | 46899200 | 3000 | |
| 48487695 | Connected_failed | H | Jan. 17, 2019, 9:09 a.m. | OK | GNU C++11 | TESTS | 55 | 530 | 72294400 | 3000 | |
| 48115163 | Fister | H | Jan. 9, 2019, 12:14 p.m. | OK | GNU C++11 | TESTS | 55 | 1809 | 49664000 | 3000 | |
| 48111124 | suchang | H | Jan. 9, 2019, 9:32 a.m. | OK | GNU C++11 | TESTS | 55 | 1980 | 25804800 | 3000 | |
| 50727462 | flukehn | H | March 3, 2019, 10:19 a.m. | OK | GNU C++11 | TESTS | 55 | 2027 | 89804800 | 3000 | |
| 46836712 | dy0607 | H | Dec. 10, 2018, 3:28 a.m. | OK | GNU C++11 | TESTS | 55 | 2043 | 89804800 | 3000 | |
| 52072324 | luogu_bot1 | H | March 31, 2019, 8:22 a.m. | OK | GNU C++11 | TESTS | 55 | 2058 | 32870400 | 3000 | |
| 48487435 | Connected_failed | H | Jan. 17, 2019, 9:02 a.m. | OK | GNU C++14 | TESTS | 55 | 576 | 72294400 | 3000 | |
| 28185881 | iwtywai2005 | H | July 1, 2017, 7:10 a.m. | OK | GNU C++14 | TESTS | 55 | 2340 | 19865600 | 3000 | |
| 25703622 | lys1280023 | H | March 22, 2017, 4:51 a.m. | OK | GNU C++14 | TESTS | 55 | 2371 | 16588800 | 3000 | |
| 55008537 | Narh | H | June 3, 2019, 8:54 a.m. | OK | GNU C++14 | TESTS | 55 | 2760 | 45670400 | 3000 | |
| 55009674 | Narh | H | June 3, 2019, 9:26 a.m. | OK | GNU C++14 | TESTS | 55 | 2791 | 55296000 | 3000 | |
| 55008444 | Narh | H | June 3, 2019, 8:51 a.m. | OK | GNU C++14 | TESTS | 55 | 2823 | 45670400 | 3000 | |
| 55008301 | Narh | H | June 3, 2019, 8:47 a.m. | OK | GNU C++14 | TESTS | 55 | 2823 | 55296000 | 3000 | |
| 48115610 | vjudge2 | H | Jan. 9, 2019, 12:32 p.m. | OK | GNU C++14 | TESTS | 55 | 2932 | 20172800 | 3000 | |
| 48110153 | zxyoi | H | Jan. 9, 2019, 8:51 a.m. | OK | GNU C++14 | TESTS | 55 | 5693 | 30105600 | 3000 | |
| 27704273 | 112 | H | June 10, 2017, 10:27 a.m. | OK | GNU C++14 | TESTS | 55 | 6021 | 35635200 | 3000 | |
| 61324286 | st1vdy | H | Sept. 26, 2019, 1:24 p.m. | OK | GNU C++17 | TESTS | 55 | 982 | 72704000 | 3000 | |
| 51298961 | JiangYutong | H | March 14, 2019, 1:34 p.m. | OK | GNU C++17 | TESTS | 55 | 1060 | 14438400 | 3000 | |
| 52224787 | idxcalccalc | H | April 2, 2019, 8:47 a.m. | OK | GNU C++17 | TESTS | 55 | 1980 | 94105600 | 3000 | |
| 52224671 | idxcalccalc | H | April 2, 2019, 8:44 a.m. | OK | GNU C++17 | TESTS | 55 | 1996 | 94105600 | 3000 | |
| 52224274 | idxcalccalc | H | April 2, 2019, 8:30 a.m. | OK | GNU C++17 | TESTS | 55 | 2089 | 93798400 | 3000 | |
| 60207376 | hjk1030 | H | Sept. 7, 2019, 8:44 a.m. | OK | GNU C++17 | TESTS | 55 | 3103 | 93798400 | 3000 | |
| 48116269 | hlhhlhhlh | H | Jan. 9, 2019, 12:59 p.m. | OK | GNU C++17 | TESTS | 55 | 5147 | 48332800 | 3000 | |
| 40982078 | ReaLNero1 | H | July 30, 2018, 6:16 p.m. | OK | MS C++ | TESTS | 55 | 1248 | 17817600 | 3000 |
Back to search problems