Lyft Level 5 Challenge 2018 - Elimination 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
1033 Lyft Level 5 Challenge 2018 - Elimination Round FINISHED False 7200 198507287 Oct. 7, 2018, 5:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 394 ) F Boolean Computer PROGRAMMING bitmasks brute force fft math 2800

B'Alice has a computer that operates on w -bit integers. The computer has n registers for values. The current content of the registers is given as an array a_1, a_2, ldots, a_n . The computer uses so-called "number gates" to manipulate this data. Each "number gate" takes two registers as inputs and calculates a function of the two values stored in those registers. Note that you can use the same register as both inputs. Each "number gate" is assembled from bit gates. There are six types of bit gates: AND, OR, XOR, NOT AND, NOT OR, and NOT XOR, denoted "A", "O", "X", "a", "o", "x", respectively. Each bit gate takes two bits as input. Its output given the input bits b_1 , b_2 is given below: To build a "number gate", one takes w bit gates and assembles them into an array. A "number gate" takes two w -bit integers x_1 and x_2 as input. The "number gate" splits the integers into w bits and feeds the i -th bit of each input to the i -th bit gate. After that, it assembles the resulting bits again to form an output word. For instance, for 4 -bit computer we might have a "number gate" "AXoA" (AND, XOR, NOT OR, AND). For two inputs, 13 = 1101_2 and 10 = 1010_2 , this returns 12 = 1100_2 , as 1 and 1 is 1 , 1 xor 0 is 1 , not ( 0 or 1 ) is 0 , and finally 1 and 0 is 0 . You are given a description of m "number gates". For each gate, your goal is to report the number of register pairs for which the "number gate" outputs the number 0 . In other words, find the number of ordered pairs (i,j) where 1 <= q i,j <= q n , such that w_k(a_i, a_j) = 0 , where w_k is the function computed by the k -th "number gate". The first line contains three integers: w , n , and m~(1 <= q w <= q 12, 1 <= q n <= q 3 cdot 10^4, 1 <= q m <= q 5 cdot 10^4) -- the word size, the number'...

Tutorials

The Lyft Level 5 Challenge 2018 Elimination Round (Div. 1 + Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
43968009 scott_wu F Oct. 7, 2018, 6:33 p.m. OK GNU C++11 TESTS 118 405 2560000 2800
43983898 vosptu F Oct. 8, 2018, 5:36 a.m. OK GNU C++11 TESTS 118 623 12800000 2800
43982604 lrvideckis F Oct. 8, 2018, 4:21 a.m. OK GNU C++11 TESTS 118 624 19148800 2800
43974346 skywalkert F Oct. 7, 2018, 8:22 p.m. OK GNU C++11 TESTS 118 795 2252800 2800
43988292 xsc F Oct. 8, 2018, 8:41 a.m. OK GNU C++11 TESTS 118 858 2457600 2800
43973875 ACRush F Oct. 7, 2018, 8:13 p.m. OK GNU C++11 TESTS 118 858 4198400 2800
57737381 py_ultron F July 25, 2019, 10:22 a.m. OK GNU C++11 TESTS 118 951 1945600 2800
44023967 samjia2000 F Oct. 9, 2018, 6:41 a.m. OK GNU C++11 TESTS 118 951 5734400 2800
57868728 lopare F July 27, 2019, 11:35 p.m. OK GNU C++11 TESTS 118 1013 2048000 2800
44071999 Timsei F Oct. 10, 2018, 11:54 a.m. OK GNU C++11 TESTS 118 1045 11980800 2800
44223797 Minnakhmetov F Oct. 12, 2018, 6:27 p.m. OK GNU C++14 TESTS 118 608 2457600 2800
44751713 ReaLNero1 F Oct. 23, 2018, 8:19 p.m. OK GNU C++14 TESTS 118 639 2457600 2800
61115816 Scut82 F Sept. 23, 2019, 12:50 p.m. OK GNU C++14 TESTS 118 670 51712000 2800
44881579 dai F Oct. 25, 2018, 7:23 p.m. OK GNU C++14 TESTS 118 841 154112000 2800
43965076 tourist F Oct. 7, 2018, 6:09 p.m. OK GNU C++14 TESTS 118 842 2150400 2800
46062773 MAKE_XJ_GREAT_AGAIN F Nov. 22, 2018, 2:14 p.m. OK GNU C++14 TESTS 118 920 12595200 2800
47371727 arseny30 F Dec. 22, 2018, 2:40 p.m. OK GNU C++14 TESTS 118 967 2150400 2800
46965275 _Sakits F Dec. 13, 2018, 10:57 a.m. OK GNU C++14 TESTS 118 1029 7168000 2800
43970659 MURAT_ECEM_EKICI F Oct. 7, 2018, 6:57 p.m. OK GNU C++14 TESTS 118 1091 64102400 2800
44056462 cz_xuyixuan F Oct. 10, 2018, 1:05 a.m. OK GNU C++14 TESTS 118 1153 12800000 2800
50872439 kczno1 F March 6, 2019, 3:17 a.m. OK GNU C++17 TESTS 118 624 2150400 2800
43968245 300iq F Oct. 7, 2018, 6:35 p.m. OK GNU C++17 TESTS 118 920 16896000 2800
43970087 azneyes F Oct. 7, 2018, 6:52 p.m. OK GNU C++17 TESTS 118 951 4300800 2800
43966317 HIR180 F Oct. 7, 2018, 6:19 p.m. OK GNU C++17 TESTS 118 1122 2355200 2800
44415661 anpans F Oct. 16, 2018, 6:55 p.m. OK GNU C++17 TESTS 118 1154 2457600 2800
43966837 Errichto F Oct. 7, 2018, 6:23 p.m. OK GNU C++17 TESTS 118 1170 2150400 2800
50872475 kczno1 F March 6, 2019, 3:19 a.m. OK GNU C++17 TESTS 118 1325 2150400 2800
55647732 cerberus97 F June 16, 2019, 1:01 p.m. OK GNU C++17 TESTS 118 1326 2150400 2800
44023419 dinosaurs F Oct. 9, 2018, 6:17 a.m. OK GNU C++17 TESTS 118 1356 3584000 2800
43978563 mango_lassi F Oct. 7, 2018, 11:44 p.m. OK GNU C++17 TESTS 118 1403 67276800 2800
43981724 uwi F Oct. 8, 2018, 3:41 a.m. OK Java 8 TESTS 118 1606 0 2800
43970656 eatmore F Oct. 7, 2018, 6:57 p.m. OK Java 8 TESTS 118 1949 0 2800
44011313 StayAwayFromBitches F Oct. 8, 2018, 6:24 p.m. OK Java 8 TESTS 118 2058 0 2800
44077489 jenish9599 F Oct. 10, 2018, 1:37 p.m. OK Java 8 TESTS 118 2105 0 2800
44017146 StayAwayFromBitches F Oct. 8, 2018, 10:29 p.m. OK Java 8 TESTS 118 2807 62156800 2800
43972738 Shaykhutdinov-T-I F Oct. 7, 2018, 7:59 p.m. OK Java 8 TESTS 118 2948 0 2800
44098348 HardikDobariya F Oct. 11, 2018, 3:34 a.m. OK Java 8 TESTS 118 3338 0 2800
43987642 qwerty787788 F Oct. 8, 2018, 8:18 a.m. OK Java 8 TESTS 118 3634 77721600 2800
43999955 ZeyadKhattab F Oct. 8, 2018, 1:16 p.m. OK Java 8 TESTS 118 4819 0 2800
44022936 tri F Oct. 9, 2018, 5:53 a.m. OK Java 8 TESTS 118 6457 29388800 2800
68986711 AleksanderBalobanov F Jan. 17, 2020, 12:46 p.m. OK MS C++ 2017 TESTS 118 4024 71168000 2800

remove filters

Back to search problems