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
( 1014 ) D Deduction Queries PROGRAMMING data structures ds 2600

B"There is an array a of 2^{30} integers, indexed from 0 to 2^{30}-1 . Initially, you know that 0 <= q a_i < 2^{30} ( 0 <= q i < 2^{30} ), but you do not know any of the values. Your task is to process queries of two types: Note that the queries are encoded. That is, you need to write an online solution. The first line contains a single integer q ( 1 <= q q <= q 2 cdot 10^5 ) -- the number of queries. Each of the next q lines describes a query. It contains one integer t ( 1 <= q t <= q 2 ) -- the type of query. The given queries will be encoded in the following way: let last be the answer to the last query of the second type that you have answered (initially, last = 0 ). If the last answer was -1 , set last = 1 . and, if l > r , swap l and r . This means you got an update that the bitwise xor of the subarray [l, r] is equal to x (notice that you need to ignore updates that contradict previous updates). and, if l > r , swap l and r . For the given query, you need to print the bitwise xor of the subarray [l, r] . If it is impossible to know, print -1 . Don't forget to change the value of last . It is guaranteed there will be at least one query of the second type. After every query of the second type, output the bitwise xor of the given subarray or -1 if it is still impossible to know. In the first example, the real queries (without being encoded) are: In the second example, notice that after the first two updates we already know that a_5 oplus a_6 = 12 , so the third update is contradicting, and we ignore it. "...

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
54805305 Dilute D May 29, 2019, 1:48 p.m. OK GNU C++11 TESTS 40 124 15052800 2600
54805275 Dilute D May 29, 2019, 1:47 p.m. OK GNU C++11 TESTS 40 124 15052800 2600
48525721 Rayment D Jan. 18, 2019, 8:58 a.m. OK GNU C++11 TESTS 40 186 16076800 2600
54234783 time_interspace D May 16, 2019, 10:17 a.m. OK GNU C++11 TESTS 40 202 16076800 2600
59695583 lyslys D Aug. 30, 2019, 8:25 a.m. OK GNU C++11 TESTS 40 234 18944000 2600
61602333 bigboyy D Oct. 1, 2019, 11:31 a.m. OK GNU C++11 TESTS 40 249 17715200 2600
45371113 NephrenRuqInsania D Nov. 6, 2018, 9:50 a.m. OK GNU C++11 TESTS 40 264 16076800 2600
46018500 weng_233 D Nov. 21, 2018, 6:13 a.m. OK GNU C++11 TESTS 40 311 16076800 2600
56518810 yan.silva D July 4, 2019, 2:02 p.m. OK GNU C++11 TESTS 40 311 17715200 2600
61602994 LittleGirll D Oct. 1, 2019, 11:45 a.m. OK GNU C++11 TESTS 40 326 16076800 2600
46353729 neal D Nov. 29, 2018, 6:56 a.m. OK GNU C++14 TESTS 40 93 44236800 2600
45309276 neal D Nov. 5, 2018, 1:55 a.m. OK GNU C++14 TESTS 40 140 43929600 2600
45574013 neal D Nov. 11, 2018, 7:43 p.m. OK GNU C++14 TESTS 40 140 44236800 2600
45573953 neal D Nov. 11, 2018, 7:42 p.m. OK GNU C++14 TESTS 40 140 44236800 2600
45786054 w446506278 D Nov. 16, 2018, 1:45 a.m. OK GNU C++14 TESTS 40 202 14950400 2600
45309046 neal D Nov. 5, 2018, 1:37 a.m. OK GNU C++14 TESTS 40 234 44236800 2600
64708929 Nhan_1309 D Nov. 11, 2019, 5:45 p.m. OK GNU C++14 TESTS 40 249 17817600 2600
64910391 I_love_Kuroni D Nov. 15, 2019, 2:44 a.m. OK GNU C++14 TESTS 40 249 23756800 2600
51377427 Amidethuong27 D March 16, 2019, 2:41 p.m. OK GNU C++14 TESTS 40 265 28160000 2600
51377487 Amidethuong27 D March 16, 2019, 2:42 p.m. OK GNU C++14 TESTS 40 280 28160000 2600
61468612 hjk1030 D Sept. 29, 2019, 11:25 a.m. OK GNU C++17 TESTS 40 202 16486400 2600
45399617 azneyes D Nov. 7, 2018, 7:34 a.m. OK GNU C++17 TESTS 40 249 22118400 2600
60324567 AliShahali1382 D Sept. 9, 2019, 11:40 p.m. OK GNU C++17 TESTS 40 296 17408000 2600
47685597 Vardanyan D Dec. 29, 2018, 2:38 p.m. OK GNU C++17 TESTS 40 326 23142400 2600
45668420 LiChenKoh D Nov. 13, 2018, 9:05 a.m. OK GNU C++17 TESTS 40 358 19660800 2600
45296056 LHiC D Nov. 4, 2018, 7:02 p.m. OK GNU C++17 TESTS 40 358 21708800 2600
45292210 zxqfl D Nov. 4, 2018, 6:32 p.m. OK GNU C++17 TESTS 40 374 10444800 2600
45295537 Marcin_smu D Nov. 4, 2018, 6:58 p.m. OK GNU C++17 TESTS 40 374 25907200 2600
59974325 balbit D Sept. 4, 2019, 4:51 a.m. OK GNU C++17 TESTS 40 374 29081600 2600
69388572 summitwei D Jan. 23, 2020, 1:25 a.m. OK GNU C++17 TESTS 40 389 17817600 2600
68711392 dalt D Jan. 13, 2020, 1:06 p.m. OK Java 8 TESTS 40 202 42393600 2600
45298192 ilyakor D Nov. 4, 2018, 7:23 p.m. OK Java 8 TESTS 40 373 27545600 2600
45294007 Petr D Nov. 4, 2018, 6:45 p.m. OK Java 8 TESTS 40 405 30822400 2600
45295763 qwerty787788 D Nov. 4, 2018, 7 p.m. OK Java 8 TESTS 40 405 49766400 2600
68710198 dalt D Jan. 13, 2020, 12:44 p.m. OK Java 8 TESTS 40 1076 259276800 2600
45298322 liymbear D Nov. 4, 2018, 7:25 p.m. OK Java 8 TESTS 40 1107 87449600 2600

remove filters

Back to search problems