Lyft Level 5 Challenge 2018 - Final Round

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
1044 Lyft Level 5 Challenge 2018 - Final Round FINISHED False 7200 190468199 Nov. 4, 2018, 6:10 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2910 ) A The Tower is Going Home PROGRAMMING binary search two pointers 1700

B"On a chessboard with a width of 10^9 and a height of 10^9 , the rows are numbered from bottom to top from 1 to 10^9 , and the columns are numbered from left to right from 1 to 10^9 . Therefore, for each cell of the chessboard you can assign the coordinates (x,y) , where x is the column number and y is the row number. Every day there are fights between black and white pieces on this board. Today, the black ones won, but at what price? Only the rook survived, and it was driven into the lower left corner -- a cell with coordinates (1,1) . But it is still happy, because the victory has been won and it's time to celebrate it! In order to do this, the rook needs to go home, namely -- on the upper side of the field (that is, in any cell that is in the row with number 10^9 ). Everything would have been fine, but the treacherous white figures put spells on some places of the field before the end of the game. There are two types of spells: Let's recall that the rook is a chess piece that in one move can move to any point that is in the same row or column with its initial position. In our task, the rook can move from the cell (r_0,c_0) into the cell (r_1,c_1) only under the condition that r_1 = r_0 or c_1 = c_0 and there is no blocking lines or blocking segments between these cells (For better understanding, look at the samples). Fortunately, the rook can remove spells, but for this it has to put tremendous efforts, therefore, it wants to remove the minimum possible number of spells in such way, that after this it can return home. Find this number! The first line contains two integers n and m ( 0 <= n,m <= 10^5 ) -- the number of vertical and horizontal spells. Each of the following n lines contains one integer x ( 1 <= x < 10^9 ) -- the description of the vertical spell. It will create a blocking line between the columns of x and x"...

Tutorials

Lyft Level 5 Challenge 2018 — Final Round — Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
60677290 luogu_bot5 A Sept. 16, 2019, 12:50 p.m. OK GNU C++11 TESTS 51 46 819200 1700
46267761 memset0c A Nov. 27, 2018, 5:10 a.m. OK GNU C++11 TESTS 51 46 819200 1700
46266483 LJC00118 A Nov. 27, 2018, 3:30 a.m. OK GNU C++11 TESTS 51 46 819200 1700
45376417 liweiggg A Nov. 6, 2018, 12:34 p.m. OK GNU C++11 TESTS 51 46 819200 1700
54261990 FAQmother A May 17, 2019, 2:45 a.m. OK GNU C++11 TESTS 51 46 1638400 1700
46266471 Sooke A Nov. 27, 2018, 3:30 a.m. OK GNU C++11 TESTS 51 46 1638400 1700
46014975 redbag A Nov. 21, 2018, 1:53 a.m. OK GNU C++11 TESTS 51 62 2048000 1700
46028393 weng_233 A Nov. 21, 2018, 12:29 p.m. OK GNU C++11 TESTS 51 78 614400 1700
45506268 vjudge2 A Nov. 10, 2018, 10:43 a.m. OK GNU C++11 TESTS 51 78 2457600 1700
57868543 lopare A July 27, 2019, 11:22 p.m. OK GNU C++11 TESTS 51 93 614400 1700
45396514 henu_16l_lxl A Nov. 7, 2018, 5:04 a.m. OK GNU C++14 TESTS 51 108 819200 1700
57710538 wilson.ho A July 24, 2019, 11:25 p.m. OK GNU C++14 TESTS 51 109 819200 1700
55050423 scientificuber A June 3, 2019, 4:19 p.m. OK GNU C++14 TESTS 51 109 819200 1700
46754769 HMS_Warspite A Dec. 8, 2018, 11:06 a.m. OK GNU C++14 TESTS 51 109 1536000 1700
51606059 rich_and_yuong A March 21, 2019, 7:30 a.m. OK GNU C++14 TESTS 51 109 1638400 1700
45396875 euzmin A Nov. 7, 2018, 5:27 a.m. OK GNU C++14 TESTS 51 109 1638400 1700
45290198 Fdg A Nov. 4, 2018, 6:20 p.m. OK GNU C++14 TESTS 50 109 1638400 1700
45309235 neal A Nov. 5, 2018, 1:52 a.m. OK GNU C++14 TESTS 50 109 2048000 1700
50133689 tejram A Feb. 18, 2019, 6:06 p.m. OK GNU C++14 TESTS 51 109 20070400 1700
50239313 CNH_OneDay A Feb. 20, 2019, 12:17 p.m. OK GNU C++14 TESTS 51 124 819200 1700
51210147 Lucina A March 12, 2019, 7:26 a.m. OK GNU C++17 TESTS 51 109 819200 1700
46100841 Random_Rating A Nov. 23, 2018, 5:41 a.m. OK GNU C++17 TESTS 51 109 819200 1700
58905694 alexradu04 A Aug. 16, 2019, 11:02 a.m. OK GNU C++17 TESTS 51 109 1536000 1700
47856707 MADKIRUS A Jan. 2, 2019, 11:30 p.m. OK GNU C++17 TESTS 51 109 1740800 1700
45347570 idsigma A Nov. 6, 2018, 4:56 a.m. OK GNU C++17 TESTS 51 109 1740800 1700
58167358 valerikk A Aug. 2, 2019, 9:37 a.m. OK GNU C++17 TESTS 51 109 2048000 1700
58167238 valerikk A Aug. 2, 2019, 9:33 a.m. OK GNU C++17 TESTS 51 124 2048000 1700
45293154 KADR A Nov. 4, 2018, 6:38 p.m. OK GNU C++17 TESTS 50 124 5632000 1700
65683742 abdelrahman____tarek A Nov. 24, 2019, 9:01 p.m. OK GNU C++17 TESTS 51 139 1536000 1700
45448280 MrPink A Nov. 8, 2018, 2:30 p.m. OK GNU C++17 TESTS 51 139 1740800 1700
45290267 ilyakor A Nov. 4, 2018, 6:20 p.m. OK Java 8 TESTS 50 155 0 1700
57844930 JCKG A July 27, 2019, 10:42 a.m. OK Java 8 TESTS 51 187 0 1700
57850500 JCKG A July 27, 2019, 12:56 p.m. OK Java 8 TESTS 51 202 0 1700
45292792 qwerty787788 A Nov. 4, 2018, 6:36 p.m. OK Java 8 TESTS 50 218 0 1700
47297133 kusomushi A Dec. 20, 2018, 12:31 p.m. OK Java 8 TESTS 51 218 0 1700
45295646 Petr A Nov. 4, 2018, 6:59 p.m. OK Java 8 TESTS 50 218 0 1700
51115859 mTvTm A March 10, 2019, 6:52 a.m. OK Java 8 TESTS 51 233 0 1700
53270405 prem_cse A April 25, 2019, 5:50 a.m. OK Java 8 TESTS 51 248 0 1700
45292347 liymbear A Nov. 4, 2018, 6:33 p.m. OK Java 8 TESTS 50 280 0 1700
45459399 jainchethan87 A Nov. 8, 2018, 10:37 p.m. OK Mono C# TESTS 51 218 10137600 1700
45446295 vjudge4 A Nov. 8, 2018, 1:35 p.m. OK MS C++ TESTS 51 93 8294400 1700
54443634 vjudge5 A May 21, 2019, 10:04 a.m. OK MS C++ TESTS 51 343 819200 1700
45441410 rStrom A Nov. 8, 2018, 11:20 a.m. OK MS C++ TESTS 51 452 819200 1700
63287985 pmitkov A Oct. 24, 2019, 10:57 a.m. OK MS C++ 2017 TESTS 51 140 2150400 1700
64099335 cameliapatilea A Nov. 2, 2019, 2:54 p.m. OK Python 3 TESTS 51 608 5632000 1700
45991025 Firepaw A Nov. 20, 2018, 9:51 a.m. OK Python 3 TESTS 51 904 22732800 1700

remove filters

Back to search problems