Lyft Level 5 Challenge 2018 - Final Round (Open Div. 2)

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
1075 Lyft Level 5 Challenge 2018 - Final Round (Open Div. 2) FINISHED False 9000 196170623 Nov. 4, 2018, 6:10 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4315 ) B Taxi drivers and Lyft PROGRAMMING implementation sortings 1200

B'Palo Alto is an unusual city because it is an endless coordinate line. It is also known for the office of Lyft Level 5. Lyft has become so popular so that it is now used by all m taxi drivers in the city, who every day transport the rest of the city residents -- n riders. Each resident (including taxi drivers) of Palo-Alto lives in its unique location (there is no such pair of residents that their coordinates are the same). The Lyft system is very clever: when a rider calls a taxi, his call does not go to all taxi drivers, but only to the one that is the closest to that person. If there are multiple ones with the same distance, then to taxi driver with a smaller coordinate is selected. But one morning the taxi drivers wondered: how many riders are there that would call the given taxi driver if they were the first to order a taxi on that day? In other words, you need to find for each taxi driver i the number a_{i} -- the number of riders that would call the i -th taxi driver when all drivers and riders are at their home? The taxi driver can neither transport himself nor other taxi drivers. The first line contains two integers n and m ( 1 <= n,m <= 10^5 ) -- number of riders and taxi drivers. The second line contains n + m integers x_1, x_2, ldots, x_{n+m} ( 1 <= x_1 < x_2 < ldots < x_{n+m} <= 10^9 ), where x_i is the coordinate where the i -th resident lives. The third line contains n + m integers t_1, t_2, ldots, t_{n+m} ( 0 <= t_i <= 1 ). If t_i = 1 , then the i -th resident is a taxi driver, otherwise t_i = 0 . It is guaranteed that the number of i such that t_i = 1 is equal to m . Print m integers a_1, a_2, ldots, a_{m} , where a_i is the answer for the i -th taxi driver. The taxi driver has the number i if among all the taxi drivers he lives in the i -th smallest coordinate (see exampl'...

Tutorials

E

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
45565293 nanae1914 B Nov. 11, 2018, 2:05 p.m. OK D TESTS 39 109 11571200 1200
45306091 kozlitin B Nov. 4, 2018, 10:03 p.m. OK Delphi TESTS 39 78 2457600 1200
45292549 ruban B Nov. 4, 2018, 6:34 p.m. OK Delphi TESTS 39 108 116121600 1200
45352652 njsfdxfszx59 B Nov. 6, 2018, 7:30 a.m. OK FPC TESTS 39 358 2457600 1200
45317420 AHTOH._. B Nov. 5, 2018, 8:47 a.m. OK FPC TESTS 39 358 3174400 1200
45353396 Khanh_Moriaty B Nov. 6, 2018, 7:55 a.m. OK FPC TESTS 39 374 2457600 1200
45299331 PAG B Nov. 4, 2018, 7:36 p.m. OK FPC TESTS 39 374 2457600 1200
45303804 Craspedacusta B Nov. 4, 2018, 8:29 p.m. OK FPC TESTS 39 374 20070400 1200
45511717 Pragyan_c2 B Nov. 10, 2018, 1:23 p.m. OK GNU C11 TESTS 39 358 1638400 1200
45555929 YAantu B Nov. 11, 2018, 8:32 a.m. OK GNU C11 TESTS 39 358 1945600 1200
45296948 iJuren B Nov. 4, 2018, 7:11 p.m. OK GNU C11 TESTS 39 358 2048000 1200
49201290 NoSoul B Jan. 30, 2019, 12:31 p.m. OK GNU C11 TESTS 39 358 2355200 1200
45869902 usuyus.22 B Nov. 17, 2018, 9:35 a.m. OK GNU C11 TESTS 39 358 2457600 1200
45291893 oyldz93 B Nov. 4, 2018, 6:30 p.m. OK GNU C11 TESTS 39 358 2457600 1200
46996300 vjudge5 B Dec. 14, 2018, 8:42 a.m. OK GNU C11 TESTS 39 358 2457600 1200
46565353 AmjadMoqade B Dec. 3, 2018, 10:11 p.m. OK GNU C11 TESTS 39 358 2764800 1200
45479603 dixitgarg B Nov. 9, 2018, 2:07 p.m. OK GNU C11 TESTS 39 358 3174400 1200
45513603 falcon_9 B Nov. 10, 2018, 2:26 p.m. OK GNU C11 TESTS 39 358 3174400 1200
48657224 ReaLNero1 B Jan. 21, 2019, 3:36 a.m. OK GNU C++11 TESTS 39 31 614400 1200
45469362 magicmomo B Nov. 9, 2018, 8:31 a.m. OK GNU C++11 TESTS 39 31 614400 1200
69650932 HPXXZYY B Jan. 28, 2020, 5:09 a.m. OK GNU C++11 TESTS 39 31 2048000 1200
45377162 phantomI B Nov. 6, 2018, 12:55 p.m. OK GNU C++11 TESTS 39 31 3379200 1200
45580611 Tardis_ B Nov. 12, 2018, 3:51 a.m. OK GNU C++11 TESTS 39 31 3993600 1200
45492673 magicmomo B Nov. 9, 2018, 8:11 p.m. OK GNU C++11 TESTS 39 46 614400 1200
45428945 PrimeMinister B Nov. 8, 2018, 1:11 a.m. OK GNU C++11 TESTS 39 46 2969600 1200
45428913 PrimeMinister B Nov. 8, 2018, 1:07 a.m. OK GNU C++11 TESTS 39 46 2969600 1200
45375891 sky48 B Nov. 6, 2018, 12:20 p.m. OK GNU C++11 TESTS 39 46 3174400 1200
46132705 2473345554 B Nov. 24, 2018, 2:54 a.m. OK GNU C++11 TESTS 39 46 3174400 1200
45290516 wleung_bvg B Nov. 4, 2018, 6:22 p.m. OK GNU C++14 TESTS 39 46 3072000 1200
45292691 Bunny_Six_Foolish B Nov. 4, 2018, 6:35 p.m. OK GNU C++14 TESTS 39 46 4096000 1200
45345445 DT3264 B Nov. 6, 2018, 2:33 a.m. OK GNU C++14 TESTS 39 78 2457600 1200
45343839 ..vince B Nov. 6, 2018, 12:25 a.m. OK GNU C++14 TESTS 39 78 3072000 1200
45437024 yangshuang B Nov. 8, 2018, 8:37 a.m. OK GNU C++14 TESTS 39 78 3174400 1200
49684122 f2016941 B Feb. 10, 2019, 5:48 a.m. OK GNU C++14 TESTS 39 78 3379200 1200
53394893 vjudge5 B April 27, 2019, 8:41 a.m. OK GNU C++14 TESTS 39 78 4812800 1200
45293291 enaim B Nov. 4, 2018, 6:39 p.m. OK GNU C++14 TESTS 39 93 2048000 1200
45504537 1627406052 B Nov. 10, 2018, 9:40 a.m. OK GNU C++14 TESTS 39 93 2764800 1200
53394978 vjudge3 B April 27, 2019, 8:44 a.m. OK GNU C++14 TESTS 39 93 2764800 1200
45291828 KirillShin B Nov. 4, 2018, 6:29 p.m. OK GNU C++17 TESTS 39 77 3072000 1200
53521866 xjwxxx B April 29, 2019, 3:54 p.m. OK GNU C++17 TESTS 39 77 3174400 1200
45660332 mohamedeltair B Nov. 13, 2018, 6:11 a.m. OK GNU C++17 TESTS 39 78 3686400 1200
45293953 latvian B Nov. 4, 2018, 6:44 p.m. OK GNU C++17 TESTS 39 78 4300800 1200
45350099 onsterm B Nov. 6, 2018, 6:58 a.m. OK GNU C++17 TESTS 39 78 5836800 1200
45349623 gbrocks B Nov. 6, 2018, 6:39 a.m. OK GNU C++17 TESTS 39 93 1536000 1200
45353080 white_156 B Nov. 6, 2018, 7:45 a.m. OK GNU C++17 TESTS 39 93 1740800 1200
45314475 Maruf089 B Nov. 5, 2018, 7:10 a.m. OK GNU C++17 TESTS 39 93 2764800 1200
45377287 TABball B Nov. 6, 2018, 12:59 p.m. OK GNU C++17 TESTS 39 93 2867200 1200
48271067 vjudge1 B Jan. 12, 2019, 2:08 a.m. OK GNU C++17 TESTS 39 93 3481600 1200
45295881 life_is_not_bed_of_roses B Nov. 4, 2018, 7:01 p.m. OK Go TESTS 39 295 5222400 1200
45485069 mishagam B Nov. 9, 2018, 4:48 p.m. OK Go TESTS 39 405 5324800 1200
45328674 Flaker B Nov. 5, 2018, 2:09 p.m. OK Go TESTS 39 420 5324800 1200
64122341 WangJialei B Nov. 3, 2019, 2:20 a.m. OK Go TESTS 39 576 8704000 1200
45348405 516108736 B Nov. 6, 2018, 5:42 a.m. OK Go TESTS 39 576 14233600 1200
64122366 vjudge1 B Nov. 3, 2019, 2:21 a.m. OK Go TESTS 39 577 8704000 1200
45296134 RasMalai B Nov. 4, 2018, 7:03 p.m. OK Java 8 TESTS 39 139 0 1200
45291502 icpc_loser B Nov. 4, 2018, 6:27 p.m. OK Java 8 TESTS 39 139 0 1200
45291615 nchn27 B Nov. 4, 2018, 6:28 p.m. OK Java 8 TESTS 39 140 0 1200
52810512 xodiac B April 16, 2019, 8:19 a.m. OK Java 8 TESTS 39 140 0 1200
45346817 aman28rwt B Nov. 6, 2018, 4:03 a.m. OK Java 8 TESTS 39 140 0 1200
45339641 chandan5284 B Nov. 5, 2018, 7:47 p.m. OK Java 8 TESTS 39 140 0 1200
45306113 Musin B Nov. 4, 2018, 10:03 p.m. OK Java 8 TESTS 39 140 0 1200
45315849 DropKeBaadNirma B Nov. 5, 2018, 7:59 a.m. OK Java 8 TESTS 39 155 0 1200
45297398 pj21 B Nov. 4, 2018, 7:15 p.m. OK Java 8 TESTS 39 155 0 1200
45296919 BNL B Nov. 4, 2018, 7:10 p.m. OK Java 8 TESTS 39 155 0 1200
45295052 dimoff66 B Nov. 4, 2018, 6:54 p.m. OK JavaScript TESTS 39 187 35840000 1200
45386749 Numbersdude B Nov. 6, 2018, 6:07 p.m. OK Kotlin TESTS 39 436 16486400 1200
45385699 Numbersdude B Nov. 6, 2018, 5:28 p.m. OK Kotlin TESTS 39 436 16793600 1200
45385143 Numbersdude B Nov. 6, 2018, 5:08 p.m. OK Kotlin TESTS 39 452 15667200 1200
45384984 Numbersdude B Nov. 6, 2018, 5:02 p.m. OK Kotlin TESTS 39 467 15667200 1200
45380350 Numbersdude B Nov. 6, 2018, 2:24 p.m. OK Kotlin TESTS 39 467 16998400 1200
51982179 wunder9l B March 29, 2019, 4:49 p.m. OK Kotlin TESTS 39 467 19456000 1200
45293588 raynald B Nov. 4, 2018, 6:42 p.m. OK Kotlin TESTS 39 483 16998400 1200
45296128 Ahmadjon B Nov. 4, 2018, 7:03 p.m. OK Kotlin TESTS 39 763 15872000 1200
45300213 jedikni B Nov. 4, 2018, 7:46 p.m. OK Kotlin TESTS 39 779 16076800 1200
55212606 andrew.albert B June 6, 2019, 3:16 p.m. OK Kotlin TESTS 39 936 8499200 1200
56544095 og.kostya B July 5, 2019, 6:50 a.m. OK Mono C# TESTS 39 77 2969600 1200
45330662 thetansquared B Nov. 5, 2018, 3:02 p.m. OK Mono C# TESTS 39 155 31641600 1200
45294792 gonchenko B Nov. 4, 2018, 6:51 p.m. OK Mono C# TESTS 39 156 31436800 1200
45343171 zazak B Nov. 5, 2018, 11:22 p.m. OK Mono C# TESTS 39 156 33894400 1200
45304715 pwian B Nov. 4, 2018, 8:38 p.m. OK Mono C# TESTS 39 171 33280000 1200
45292307 omikad B Nov. 4, 2018, 6:32 p.m. OK Mono C# TESTS 39 171 33689600 1200
45292134 awesomeday B Nov. 4, 2018, 6:31 p.m. OK Mono C# TESTS 39 187 30720000 1200
45300240 mircea85 B Nov. 4, 2018, 7:46 p.m. OK Mono C# TESTS 39 187 37683200 1200
45333818 fr0st B Nov. 5, 2018, 4:34 p.m. OK Mono C# TESTS 39 202 33894400 1200
45296104 codespydor B Nov. 4, 2018, 7:03 p.m. OK Mono C# TESTS 39 202 33894400 1200
45323327 vjudge2 B Nov. 5, 2018, 11:42 a.m. OK MS C++ TESTS 39 77 3993600 1200
45394954 Houbunsha B Nov. 7, 2018, 3:13 a.m. OK MS C++ TESTS 39 78 2457600 1200
45564529 Md-Mehedi B Nov. 11, 2018, 1:36 p.m. OK MS C++ TESTS 39 78 2457600 1200
45398336 vjudge5 B Nov. 7, 2018, 6:40 a.m. OK MS C++ TESTS 39 78 3993600 1200
45442693 vjudge2 B Nov. 8, 2018, 11:57 a.m. OK MS C++ TESTS 39 78 3993600 1200
53392686 vjudge2 B April 27, 2019, 7:40 a.m. OK MS C++ TESTS 39 78 6451200 1200
48787752 vjudge4 B Jan. 23, 2019, 9:48 a.m. OK MS C++ TESTS 39 78 32051200 1200
49345002 scorpiowf B Feb. 2, 2019, 4:49 a.m. OK MS C++ TESTS 39 93 3276800 1200
45291085 youx B Nov. 4, 2018, 6:25 p.m. OK MS C++ TESTS 39 93 6758400 1200
53594460 vjudge2 B May 1, 2019, 3:10 a.m. OK MS C++ TESTS 39 93 11980800 1200
51970465 CtrlAlt B March 29, 2019, 12:11 p.m. OK MS C++ 2017 TESTS 39 124 2867200 1200
68818162 Ahmed.Mustafa.0100 B Jan. 14, 2020, 4:44 p.m. OK MS C++ 2017 TESTS 39 140 3993600 1200
53406223 F91WoDaGe B April 27, 2019, 10:54 a.m. OK MS C++ 2017 TESTS 39 187 5632000 1200
45317629 sk0 B Nov. 5, 2018, 8:53 a.m. OK Ocaml TESTS 39 592 14028800 1200
45327621 KGYYT B Nov. 5, 2018, 1:41 p.m. OK PascalABC.NET TESTS 39 779 11673600 1200
45292732 l-_-l B Nov. 4, 2018, 6:35 p.m. OK PascalABC.NET TESTS 39 795 11673600 1200
45294194 Arcadii B Nov. 4, 2018, 6:47 p.m. OK PascalABC.NET TESTS 39 810 921600 1200
45500401 OpKos B Nov. 10, 2018, 7:14 a.m. OK PascalABC.NET TESTS 39 811 2867200 1200
45293033 rsFalse B Nov. 4, 2018, 6:38 p.m. OK Perl TESTS 39 358 33792000 1200
45334844 mayakin B Nov. 5, 2018, 5:06 p.m. OK PHP TESTS 39 249 37376000 1200
45292077 _kawaii_neko_ B Nov. 4, 2018, 6:31 p.m. OK PyPy 2 TESTS 39 202 18534400 1200
45292997 tastymath75025 B Nov. 4, 2018, 6:37 p.m. OK PyPy 2 TESTS 39 218 18534400 1200
45294974 wolffd B Nov. 4, 2018, 6:53 p.m. OK PyPy 2 TESTS 39 218 18534400 1200
45343461 daniel.carlos B Nov. 5, 2018, 11:50 p.m. OK PyPy 2 TESTS 39 233 20889600 1200
45291557 pavankatta B Nov. 4, 2018, 6:28 p.m. OK PyPy 2 TESTS 39 249 14643200 1200
45295540 c1729 B Nov. 4, 2018, 6:58 p.m. OK PyPy 2 TESTS 39 265 19148800 1200
51981550 gatsko B March 29, 2019, 4:33 p.m. OK PyPy 2 TESTS 39 295 22937600 1200
45298931 figdan B Nov. 4, 2018, 7:32 p.m. OK PyPy 2 TESTS 39 639 19046400 1200
45292081 ulyabelyaeva B Nov. 4, 2018, 6:31 p.m. OK PyPy 3 TESTS 39 373 18739200 1200
67689072 Tzapil B Dec. 27, 2019, 10:15 a.m. OK PyPy 3 TESTS 39 374 20070400 1200
45292692 yan4ik B Nov. 4, 2018, 6:35 p.m. OK PyPy 3 TESTS 39 374 29184000 1200
45385185 petiteteaparty B Nov. 6, 2018, 5:10 p.m. OK PyPy 3 TESTS 39 389 18124800 1200
45750612 arknave B Nov. 15, 2018, 12:34 a.m. OK PyPy 3 TESTS 39 389 19558400 1200
45291027 potpath B Nov. 4, 2018, 6:25 p.m. OK PyPy 3 TESTS 39 389 19660800 1200
46089265 yagami3566 B Nov. 22, 2018, 6:46 p.m. OK PyPy 3 TESTS 39 404 18227200 1200
45291350 zvv B Nov. 4, 2018, 6:26 p.m. OK PyPy 3 TESTS 39 405 17817600 1200
45296343 natascha.abraschitowa B Nov. 4, 2018, 7:05 p.m. OK PyPy 3 TESTS 39 405 20889600 1200
45301764 kainwen B Nov. 4, 2018, 8:04 p.m. OK PyPy 3 TESTS 39 436 17920000 1200
45297097 abs15 B Nov. 4, 2018, 7:12 p.m. OK Python 2 TESTS 39 467 11161600 1200
45304281 elistark B Nov. 4, 2018, 8:34 p.m. OK Python 2 TESTS 39 483 11059200 1200
45429383 vjudge1 B Nov. 8, 2018, 1:46 a.m. OK Python 2 TESTS 39 483 11161600 1200
45294186 pa.n.ik B Nov. 4, 2018, 6:46 p.m. OK Python 2 TESTS 39 514 11776000 1200
45392190 jacek.tomek B Nov. 6, 2018, 10:49 p.m. OK Python 2 TESTS 39 514 14336000 1200
45386849 noob77777 B Nov. 6, 2018, 6:10 p.m. OK Python 2 TESTS 39 514 15974400 1200
45297272 raven_47 B Nov. 4, 2018, 7:14 p.m. OK Python 2 TESTS 39 545 12902400 1200
45292934 recurze B Nov. 4, 2018, 6:37 p.m. OK Python 2 TESTS 39 592 11161600 1200
45298485 FlyingBag65 B Nov. 4, 2018, 7:27 p.m. OK Python 2 TESTS 39 623 11059200 1200
45432976 Atef B Nov. 8, 2018, 5:50 a.m. OK Python 2 TESTS 39 623 13312000 1200
51982053 Kiri11 B March 29, 2019, 4:45 p.m. OK Python 3 TESTS 39 311 14540800 1200
45671289 morozov B Nov. 13, 2018, 10:48 a.m. OK Python 3 TESTS 39 327 16076800 1200
45297335 virter B Nov. 4, 2018, 7:15 p.m. OK Python 3 TESTS 39 327 16076800 1200
45291870 Jozik B Nov. 4, 2018, 6:29 p.m. OK Python 3 TESTS 39 343 15769600 1200
45706000 Wojakors B Nov. 14, 2018, 11:36 a.m. OK Python 3 TESTS 39 358 15564800 1200
45294818 the_white_devil B Nov. 4, 2018, 6:52 p.m. OK Python 3 TESTS 39 358 15769600 1200
45299664 sreznick B Nov. 4, 2018, 7:40 p.m. OK Python 3 TESTS 39 373 16076800 1200
45564895 Maximk0_o B Nov. 11, 2018, 1:48 p.m. OK Python 3 TESTS 39 389 15769600 1200
45295431 elayla B Nov. 4, 2018, 6:57 p.m. OK Python 3 TESTS 39 389 15769600 1200
58650359 franckmy B Aug. 12, 2019, 7:16 a.m. OK Python 3 TESTS 39 389 16896000 1200
45543181 Karnaj B Nov. 10, 2018, 8:57 p.m. OK Ruby TESTS 39 421 37376000 1200
45390836 Hillmouse B Nov. 6, 2018, 9:12 p.m. OK Rust TESTS 39 61 8192000 1200
45323722 yakamoto B Nov. 5, 2018, 11:53 a.m. OK Scala TESTS 39 530 8601600 1200
45291308 amirrr B Nov. 4, 2018, 6:26 p.m. OK Scala TESTS 39 560 8396800 1200
45291134 limed B Nov. 4, 2018, 6:25 p.m. OK Scala TESTS 39 639 10956800 1200
45301731 drywet B Nov. 4, 2018, 8:04 p.m. OK Scala TESTS 39 842 1945600 1200
45296304 wrick B Nov. 4, 2018, 7:05 p.m. OK Scala TESTS 39 919 28262400 1200

remove filters

Back to search problems