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 |
|---|---|---|---|---|---|---|
| 594 | Codeforces Round 330 (Div. 1) | FINISHED | False | 7200 | 329405423 | Nov. 8, 2015, 4:30 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 558 ) | B | Max and Bike | PROGRAMMING | binary search geometry | 2400 |
For months Maxim has been coming to work on his favorite bicycle. And quite recently he decided that he is ready to take part in a cyclists' competitions. He knows that this year n competitions will take place. During the i -th competition the participant must as quickly as possible complete a ride along a straight line from point s i to point f i ( s i < f i ). Measuring time is a complex process related to usage of a special sensor and a time counter. Think of the front wheel of a bicycle as a circle of radius r . Let's neglect the thickness of a tire, the size of the sensor, and all physical effects. The sensor is placed on the rim of the wheel, that is, on some fixed point on a circle of radius r . After that the counter moves just like the chosen point of the circle, i.e. moves forward and rotates around the center of the circle. At the beginning each participant can choose any point b i , such that his bike is fully behind the starting line, that is, b i < s i - r . After that, he starts the movement, instantly accelerates to his maximum speed and at time ts i , when the coordinate of the sensor is equal to the coordinate of the start, the time counter starts. The cyclist makes a complete ride, moving with his maximum speed and at the moment the sensor's coordinate is equal to the coordinate of the finish (moment of time tf i ), the time counter deactivates and records the final time. Thus, the counter records that the participant made a complete ride in time tf i - ts i . Maxim is good at math and he suspects that the total result doesn't only depend on his maximum speed v , but also on his choice of the initial point b i . Now Maxim is asking you to calculate for each of n competitions the minimum possible time that can be measured by the time counter. The radius of the wheel of his bike is equal to r . The first line contains three integers n , r and v ( 1 ≤ n ≤ 100 000, 1 ≤ r , v ≤ 10 9 ) — the number of competitions, the radius of the front whee |
| Codeforces Round #330 (Div.1 + Div.2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 14151805 | Gassa | B | Nov. 8, 2015, 5:26 p.m. | OK | D | TESTS | 31 | 701 | 0 | 2400 | |
| 14162617 | TheHedgehog | B | Nov. 8, 2015, 11:41 p.m. | OK | Delphi | TESTS | 31 | 343 | 0 | 2400 | |
| 14162638 | TheHedgehog | B | Nov. 8, 2015, 11:45 p.m. | OK | Delphi | TESTS | 31 | 343 | 0 | 2400 | |
| 14162595 | TheHedgehog | B | Nov. 8, 2015, 11:37 p.m. | OK | Delphi | TESTS | 31 | 343 | 0 | 2400 | |
| 14162584 | TheHedgehog | B | Nov. 8, 2015, 11:35 p.m. | OK | Delphi | TESTS | 31 | 358 | 0 | 2400 | |
| 14162577 | TheHedgehog | B | Nov. 8, 2015, 11:33 p.m. | OK | Delphi | TESTS | 31 | 374 | 15155200 | 2400 | |
| 14149000 | TheHedgehog | B | Nov. 8, 2015, 4:59 p.m. | OK | Delphi | TESTS | 31 | 374 | 15155200 | 2400 | |
| 14162699 | TheHedgehog | B | Nov. 8, 2015, 11:58 p.m. | OK | Delphi | TESTS | 31 | 639 | 0 | 2400 | |
| 14162681 | TheHedgehog | B | Nov. 8, 2015, 11:55 p.m. | OK | Delphi | TESTS | 31 | 717 | 0 | 2400 | |
| 14163351 | ruban | B | Nov. 9, 2015, 2:14 a.m. | OK | Delphi | TESTS | 31 | 904 | 20070400 | 2400 | |
| 14163618 | mkirsche | B | Nov. 9, 2015, 3 a.m. | OK | GNU C | TESTS | 31 | 1653 | 0 | 2400 | |
| 14161827 | alecsyde | B | Nov. 8, 2015, 9:19 p.m. | OK | GNU C++ | TESTS | 31 | 265 | 3993600 | 2400 | |
| 14911416 | iddaga | B | Dec. 21, 2015, 11:36 a.m. | OK | GNU C++ | TESTS | 31 | 312 | 0 | 2400 | |
| 14176698 | elsantodel90 | B | Nov. 9, 2015, 7:57 p.m. | OK | GNU C++ | TESTS | 31 | 343 | 0 | 2400 | |
| 14160704 | Te4NIK | B | Nov. 8, 2015, 7:46 p.m. | OK | GNU C++ | TESTS | 31 | 389 | 0 | 2400 | |
| 14172632 | kapcha | B | Nov. 9, 2015, 2:51 p.m. | OK | GNU C++ | TESTS | 31 | 405 | 0 | 2400 | |
| 14172636 | kapcha | B | Nov. 9, 2015, 2:51 p.m. | OK | GNU C++ | TESTS | 31 | 405 | 0 | 2400 | |
| 14325734 | Neddlh | B | Nov. 18, 2015, 12:21 p.m. | OK | GNU C++ | TESTS | 31 | 405 | 307200 | 2400 | |
| 41655616 | Scut82 | B | Aug. 16, 2018, 2:24 p.m. | OK | GNU C++ | TESTS | 31 | 452 | 0 | 2400 | |
| 14183527 | NEU20133823 | B | Nov. 10, 2015, 11:48 a.m. | OK | GNU C++ | TESTS | 31 | 468 | 0 | 2400 | |
| 14176201 | tripPple_A | B | Nov. 9, 2015, 7:16 p.m. | OK | GNU C++ | TESTS | 31 | 468 | 0 | 2400 | |
| 61088816 | rainboy | B | Sept. 22, 2019, 7:37 p.m. | OK | GNU C11 | TESTS | 31 | 733 | 0 | 2400 | |
| 40985830 | ReaLNero1 | B | July 30, 2018, 8:11 p.m. | OK | GNU C++11 | TESTS | 31 | 264 | 0 | 2400 | |
| 14160302 | IrOty1oX5uSp4 | B | Nov. 8, 2015, 7:26 p.m. | OK | GNU C++11 | TESTS | 31 | 265 | 0 | 2400 | |
| 14161653 | IrOty1oX5uSp4 | B | Nov. 8, 2015, 8:56 p.m. | OK | GNU C++11 | TESTS | 31 | 280 | 0 | 2400 | |
| 16196581 | ZeminJiang | B | Feb. 19, 2016, 9:18 a.m. | OK | GNU C++11 | TESTS | 31 | 327 | 0 | 2400 | |
| 14196015 | aostankov | B | Nov. 11, 2015, 12:16 p.m. | OK | GNU C++11 | TESTS | 31 | 358 | 0 | 2400 | |
| 14159892 | step5 | B | Nov. 8, 2015, 7:10 p.m. | OK | GNU C++11 | TESTS | 31 | 358 | 0 | 2400 | |
| 49302979 | Scut82 | B | Feb. 1, 2019, 4:21 a.m. | OK | GNU C++11 | TESTS | 31 | 374 | 0 | 2400 | |
| 16718988 | Vercingetorix | B | March 14, 2016, 5:26 p.m. | OK | GNU C++11 | TESTS | 31 | 390 | 0 | 2400 | |
| 14166509 | mayoko | B | Nov. 9, 2015, 7:34 a.m. | OK | GNU C++11 | TESTS | 31 | 405 | 0 | 2400 | |
| 27513269 | Toll | B | June 2, 2017, 1:59 a.m. | OK | GNU C++11 | TESTS | 31 | 421 | 0 | 2400 | |
| 62458071 | Scut82 | B | Oct. 13, 2019, 7:13 a.m. | OK | GNU C++14 | TESTS | 31 | 483 | 0 | 2400 | |
| 62457853 | Scut82 | B | Oct. 13, 2019, 7:08 a.m. | OK | GNU C++14 | TESTS | 31 | 498 | 0 | 2400 | |
| 27478878 | DTDT | B | June 1, 2017, 6:39 a.m. | OK | GNU C++14 | TESTS | 31 | 561 | 0 | 2400 | |
| 23386294 | Ali.Pi | B | Dec. 28, 2016, 8:17 p.m. | OK | GNU C++14 | TESTS | 31 | 561 | 1843200 | 2400 | |
| 43418874 | LucaSeri | B | Sept. 25, 2018, 4:46 p.m. | OK | GNU C++14 | TESTS | 31 | 577 | 0 | 2400 | |
| 30000106 | fengsuiyan | B | Sept. 2, 2017, 2:01 a.m. | OK | GNU C++14 | TESTS | 31 | 670 | 0 | 2400 | |
| 42790659 | I_love_Y_UME | B | Sept. 12, 2018, 8:14 a.m. | OK | GNU C++14 | TESTS | 31 | 888 | 0 | 2400 | |
| 29842473 | shas20 | B | Aug. 28, 2017, 9:45 a.m. | OK | GNU C++14 | TESTS | 31 | 889 | 0 | 2400 | |
| 23643690 | xiaoxiaobaozi | B | Jan. 8, 2017, 9:43 a.m. | OK | GNU C++14 | TESTS | 31 | 935 | 1945600 | 2400 | |
| 49652472 | ATS | B | Feb. 9, 2019, 8:19 a.m. | OK | GNU C++14 | TESTS | 31 | 1060 | 204800 | 2400 | |
| 64313048 | KonaeAkira | B | Nov. 5, 2019, 1:19 p.m. | OK | GNU C++17 | TESTS | 31 | 389 | 0 | 2400 | |
| 67784069 | ruo | B | Dec. 28, 2019, 12:04 p.m. | OK | GNU C++17 | TESTS | 31 | 530 | 0 | 2400 | |
| 14162851 | Rotsor | B | Nov. 9, 2015, 12:29 a.m. | OK | Haskell | TESTS | 31 | 1170 | 8499200 | 2400 | |
| 61088815 | Dukkha | B | Sept. 22, 2019, 7:37 p.m. | OK | Java 8 | TESTS | 31 | 701 | 0 | 2400 | |
| 14159301 | alexyz | B | Nov. 8, 2015, 6:55 p.m. | OK | Java 8 | TESTS | 31 | 779 | 0 | 2400 | |
| 15188556 | antonkov | B | Jan. 5, 2016, 7:39 a.m. | OK | Java 8 | TESTS | 31 | 1045 | 0 | 2400 | |
| 14151993 | jopiko123 | B | Nov. 8, 2015, 5:27 p.m. | OK | Java 8 | TESTS | 31 | 1091 | 0 | 2400 | |
| 14161558 | abear888 | B | Nov. 8, 2015, 8:43 p.m. | OK | Java 8 | TESTS | 31 | 1154 | 0 | 2400 | |
| 28855666 | bobthesmartypants | B | July 24, 2017, 6:39 p.m. | OK | Java 8 | TESTS | 31 | 1481 | 21606400 | 2400 | |
| 14184017 | nmakarov | B | Nov. 10, 2015, 12:29 p.m. | OK | Java 8 | TESTS | 31 | 1591 | 0 | 2400 | |
| 14160783 | safarisoul | B | Nov. 8, 2015, 7:51 p.m. | OK | Java 8 | TESTS | 31 | 1699 | 0 | 2400 | |
| 14162132 | uwi | B | Nov. 8, 2015, 10:06 p.m. | OK | Java 8 | TESTS | 31 | 1934 | 0 | 2400 | |
| 23534346 | sdya | B | Jan. 4, 2017, 11:38 a.m. | OK | MS C++ | TESTS | 31 | 468 | 2048000 | 2400 | |
| 14181427 | RomaWhite | B | Nov. 10, 2015, 7:57 a.m. | OK | MS C++ | TESTS | 31 | 577 | 0 | 2400 | |
| 14161165 | JustasK | B | Nov. 8, 2015, 8:12 p.m. | OK | MS C++ | TESTS | 31 | 685 | 0 | 2400 | |
| 14148482 | Um_nik | B | Nov. 8, 2015, 4:54 p.m. | OK | MS C++ | TESTS | 31 | 733 | 0 | 2400 | |
| 14158955 | Trumen | B | Nov. 8, 2015, 6:29 p.m. | OK | MS C++ | TESTS | 31 | 748 | 0 | 2400 | |
| 14910848 | Xhark | B | Dec. 21, 2015, 11:01 a.m. | OK | MS C++ | TESTS | 31 | 857 | 0 | 2400 | |
| 16710698 | mkmax472 | B | March 14, 2016, 9:18 a.m. | OK | MS C++ | TESTS | 31 | 1247 | 0 | 2400 | |
| 14839327 | LHiC | B | Dec. 16, 2015, 8:15 p.m. | OK | MS C++ | TESTS | 31 | 1560 | 0 | 2400 | |
| 14221076 | AcrossTheSky | B | Nov. 13, 2015, 1:56 a.m. | OK | MS C++ | TESTS | 31 | 1872 | 0 | 2400 | |
| 14463927 | NEIL74 | B | Nov. 25, 2015, 6:50 a.m. | OK | PyPy 2 | TESTS | 31 | 1356 | 6144000 | 2400 | |
| 14153331 | pflueger | B | Nov. 8, 2015, 5:39 p.m. | OK | PyPy 2 | TESTS | 31 | 1902 | 9216000 | 2400 |
Back to search problems