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 |
|---|---|---|---|---|---|---|
| 500 | Good Bye 2014 | FINISHED | False | 9000 | 356454023 | Dec. 30, 2014, 3 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 1577 ) | E | New Year Domino | PROGRAMMING | data structures dp dsu | 2200 |
Celebrating the new year, many people post videos of falling dominoes; Here's a list of them: https://www.youtube.com/results?search_query=New+Years+Dominos User ainta, who lives in a 2D world, is going to post a video as well. There are n dominoes on a 2D Cartesian plane. i -th domino ( 1 ≤ i ≤ n ) can be represented as a line segment which is parallel to the y -axis and whose length is l i . The lower point of the domino is on the x -axis. Let's denote the x -coordinate of the i -th domino as p i . Dominoes are placed one after another, so p 1 < p 2 < ... < p n - 1 < p n holds. User ainta wants to take a video of falling dominoes. To make dominoes fall, he can push a single domino to the right. Then, the domino will fall down drawing a circle-shaped orbit until the line segment totally overlaps with the x-axis. Also, if the s -th domino touches the t -th domino while falling down, the t -th domino will also fall down towards the right, following the same procedure above. Domino s touches domino t if and only if the segment representing s and t intersects. See the picture above. If he pushes the leftmost domino to the right, it falls down, touching dominoes (A), (B) and (C). As a result, dominoes (A), (B), (C) will also fall towards the right. However, domino (D) won't be affected by pushing the leftmost domino, but eventually it will fall because it is touched by domino (C) for the first time. The picture above is an example of falling dominoes. Each red circle denotes a touch of two dominoes. User ainta has q plans of posting the video. j -th of them starts with pushing the x j -th domino, and lasts until the y j -th domino falls. But sometimes, it could be impossible to achieve such plan, so he has to lengthen some dominoes. It costs one dollar to increase the length of a single domino by 1 . User ainta wants to know, for each plan, the minimum cost needed to achieve it. Plans are processed independently, i. e. if domino's length is increased in some p |
| Tutorial 2 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 18487831 | jinzhihan | E | June 15, 2016, 4:47 a.m. | OK | FPC | TESTS | 42 | 592 | 11264000 | 2200 | |
| 20175154 | Gray_58 | E | Aug. 26, 2016, 12:43 p.m. | OK | FPC | TESTS | 42 | 701 | 26624000 | 2200 | |
| 28182967 | programming0808 | E | July 1, 2017, 3 a.m. | OK | FPC | TESTS | 42 | 842 | 117145600 | 2200 | |
| 24556413 | tungtinhoctre126 | E | Feb. 9, 2017, 6:56 p.m. | OK | FPC | TESTS | 42 | 857 | 117145600 | 2200 | |
| 25139053 | xjr | E | March 2, 2017, 2:48 a.m. | OK | GNU C++ | TESTS | 42 | 109 | 10956800 | 2200 | |
| 40987481 | ReaLNero1 | E | July 30, 2018, 9:17 p.m. | OK | GNU C++ | TESTS | 42 | 124 | 8806400 | 2200 | |
| 36239157 | vjudge1 | E | March 13, 2018, 5:04 a.m. | OK | GNU C++ | TESTS | 42 | 124 | 10649600 | 2200 | |
| 40563287 | luogu_bot1 | E | July 20, 2018, 2:50 a.m. | OK | GNU C++ | TESTS | 42 | 140 | 14233600 | 2200 | |
| 36746533 | vjudge3 | E | March 30, 2018, 12:24 p.m. | OK | GNU C++ | TESTS | 42 | 140 | 17715200 | 2200 | |
| 36746583 | vjudge1 | E | March 30, 2018, 12:26 p.m. | OK | GNU C++ | TESTS | 42 | 155 | 17715200 | 2200 | |
| 36747534 | vjudge1 | E | March 30, 2018, 1:05 p.m. | OK | GNU C++ | TESTS | 42 | 156 | 17715200 | 2200 | |
| 40477104 | vjudge2 | E | July 17, 2018, 12:23 p.m. | OK | GNU C++ | TESTS | 42 | 171 | 68300800 | 2200 | |
| 33661761 | vjudge2 | E | Dec. 27, 2017, 5:48 a.m. | OK | GNU C++ | TESTS | 42 | 186 | 22323200 | 2200 | |
| 40195179 | vjudge4 | E | July 11, 2018, 8:47 a.m. | OK | GNU C++ | TESTS | 42 | 186 | 68198400 | 2200 | |
| 59816792 | rainboy | E | Aug. 31, 2019, 3:39 p.m. | OK | GNU C11 | TESTS | 42 | 951 | 32051200 | 2200 | |
| 40261973 | CMXRYNP | E | July 13, 2018, 1:01 p.m. | OK | GNU C++11 | TESTS | 42 | 93 | 18022400 | 2200 | |
| 44380128 | Richard_love_OI | E | Oct. 16, 2018, 2:53 a.m. | OK | GNU C++11 | TESTS | 42 | 124 | 12697600 | 2200 | |
| 62098232 | vjudge1 | E | Oct. 8, 2019, 8:15 a.m. | OK | GNU C++11 | TESTS | 42 | 124 | 14233600 | 2200 | |
| 59575743 | luogu_bot4 | E | Aug. 27, 2019, 2:05 p.m. | OK | GNU C++11 | TESTS | 42 | 139 | 27136000 | 2200 | |
| 18103253 | LSY_is_retired | E | May 26, 2016, 11:35 a.m. | OK | GNU C++11 | TESTS | 42 | 140 | 17817600 | 2200 | |
| 44405801 | Patti | E | Oct. 16, 2018, 2:46 p.m. | OK | GNU C++11 | TESTS | 42 | 156 | 14540800 | 2200 | |
| 51920272 | chc_1234567890 | E | March 28, 2019, 3:34 a.m. | OK | GNU C++11 | TESTS | 42 | 171 | 8806400 | 2200 | |
| 44406142 | Patti | E | Oct. 16, 2018, 2:55 p.m. | OK | GNU C++11 | TESTS | 42 | 186 | 16691200 | 2200 | |
| 25942565 | tqyaaaaaaaang | E | March 30, 2017, 6:22 a.m. | OK | GNU C++11 | TESTS | 42 | 187 | 9318400 | 2200 | |
| 19754472 | 0xA28 | E | Aug. 9, 2016, 8:53 p.m. | OK | GNU C++11 | TESTS | 42 | 187 | 10854400 | 2200 | |
| 26826718 | cabinfever | E | May 4, 2017, 1:36 a.m. | OK | GNU C++14 | TESTS | 42 | 233 | 7270400 | 2200 | |
| 34606971 | Robbinb1993 | E | Jan. 27, 2018, 1:29 p.m. | OK | GNU C++14 | TESTS | 42 | 233 | 11468800 | 2200 | |
| 33616887 | xuanquang1999 | E | Dec. 25, 2017, 12:45 p.m. | OK | GNU C++14 | TESTS | 42 | 249 | 12492800 | 2200 | |
| 36134065 | datblind | E | March 10, 2018, 2:09 a.m. | OK | GNU C++14 | TESTS | 42 | 249 | 36659200 | 2200 | |
| 43225414 | Fischer | E | Sept. 21, 2018, 8:43 p.m. | OK | GNU C++14 | TESTS | 42 | 264 | 10444800 | 2200 | |
| 34104321 | nqiiii | E | Jan. 12, 2018, 11 a.m. | OK | GNU C++14 | TESTS | 42 | 265 | 12595200 | 2200 | |
| 57967506 | phoenix28 | E | July 30, 2019, 3:36 a.m. | OK | GNU C++14 | TESTS | 42 | 265 | 14438400 | 2200 | |
| 36154359 | datblind | E | March 10, 2018, 3:06 p.m. | OK | GNU C++14 | TESTS | 42 | 265 | 36659200 | 2200 | |
| 51432140 | RobeZH | E | March 18, 2019, 2:02 a.m. | OK | GNU C++14 | TESTS | 42 | 280 | 11366400 | 2200 | |
| 46723640 | T.V_N | E | Dec. 7, 2018, 2:05 p.m. | OK | GNU C++14 | TESTS | 42 | 280 | 16588800 | 2200 | |
| 40403758 | ffffxk | E | July 16, 2018, 8:47 a.m. | OK | GNU C++17 | TESTS | 42 | 249 | 7168000 | 2200 | |
| 68670773 | mraron | E | Jan. 12, 2020, 4:47 p.m. | OK | GNU C++17 | TESTS | 42 | 280 | 18124800 | 2200 | |
| 68670745 | mraron | E | Jan. 12, 2020, 4:46 p.m. | OK | GNU C++17 | TESTS | 42 | 280 | 18124800 | 2200 | |
| 68670393 | mraron | E | Jan. 12, 2020, 4:39 p.m. | OK | GNU C++17 | TESTS | 42 | 296 | 18124800 | 2200 | |
| 69490648 | HadyKo Ali.haidar | E | Jan. 24, 2020, 10:22 p.m. | OK | GNU C++17 | TESTS | 42 | 311 | 19148800 | 2200 | |
| 49822093 | CaNDidaTE_FaSTer | E | Feb. 12, 2019, 9:27 a.m. | OK | GNU C++17 | TESTS | 42 | 312 | 75366400 | 2200 | |
| 46455984 | ptrtofuture | E | Dec. 1, 2018, 6:42 p.m. | OK | GNU C++17 | TESTS | 42 | 343 | 18124800 | 2200 | |
| 65828734 | Rian_5900 | E | Nov. 27, 2019, 1:33 p.m. | OK | GNU C++17 | TESTS | 42 | 358 | 32256000 | 2200 | |
| 42080618 | BackOnTrack | E | Aug. 25, 2018, 8:02 a.m. | OK | GNU C++17 | TESTS | 42 | 358 | 55296000 | 2200 | |
| 44765743 | libra9z | E | Oct. 24, 2018, 9:43 a.m. | OK | GNU C++17 | TESTS | 42 | 373 | 19251200 | 2200 | |
| 16050157 | sanket407 | E | Feb. 16, 2016, 7:06 a.m. | OK | Java 7 | TESTS | 42 | 514 | 21606400 | 2200 | |
| 16050098 | sanket407 | E | Feb. 16, 2016, 7:01 a.m. | OK | Java 7 | TESTS | 42 | 1512 | 16998400 | 2200 | |
| 15007990 | WonderMouse | E | Dec. 25, 2015, 2:47 p.m. | OK | Java 8 | TESTS | 42 | 436 | 15974400 | 2200 | |
| 16283057 | antonkov | E | Feb. 22, 2016, 7:36 p.m. | OK | Java 8 | TESTS | 42 | 514 | 60211200 | 2200 | |
| 18115241 | donli | E | May 27, 2016, 8:56 a.m. | OK | Java 8 | TESTS | 42 | 919 | 99532800 | 2200 | |
| 18115073 | donli | E | May 27, 2016, 8:41 a.m. | OK | Java 8 | TESTS | 42 | 951 | 106291200 | 2200 | |
| 18114554 | donli | E | May 27, 2016, 7:54 a.m. | OK | Java 8 | TESTS | 42 | 1075 | 106291200 | 2200 | |
| 42293670 | AQT | E | Aug. 31, 2018, 12:24 a.m. | OK | Java 8 | TESTS | 42 | 1201 | 157184000 | 2200 | |
| 59816790 | Dukkha | E | Aug. 31, 2019, 3:39 p.m. | OK | Java 8 | TESTS | 42 | 1216 | 39116800 | 2200 | |
| 44563402 | PrakharJain | E | Oct. 19, 2018, 8:48 p.m. | OK | Java 8 | TESTS | 42 | 1715 | 75059200 | 2200 | |
| 44379963 | vjudge4 | E | Oct. 16, 2018, 2:42 a.m. | OK | MS C++ | TESTS | 42 | 140 | 13926400 | 2200 | |
| 17179839 | vjudge5 | E | April 6, 2016, 3:41 a.m. | OK | MS C++ | TESTS | 42 | 218 | 14438400 | 2200 | |
| 44380544 | vjudge1 | E | Oct. 16, 2018, 3:18 a.m. | OK | MS C++ | TESTS | 42 | 280 | 19353600 | 2200 | |
| 16902429 | PolyProgrammist | E | March 24, 2016, 7:57 a.m. | OK | MS C++ | TESTS | 42 | 1419 | 46182400 | 2200 | |
| 60372957 | pajenegod | E | Sept. 11, 2019, 4:08 a.m. | OK | PyPy 2 | TESTS | 42 | 779 | 58880000 | 2200 |
Back to search problems