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 | 198593724 | Oct. 7, 2018, 5:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 2433 ) | D | Divisors | PROGRAMMING | interactive math number theory | 2000 |
B'You are given n integers a_1, a_2, ldots, a_n . Each of a_i has between 3 and 5 divisors. Consider a = prod a_i -- the product of all input integers. Find the number of divisors of a . As this number may be very large, print it modulo prime number 998244353 . The first line contains a single integer n ( 1 <= q n <= q 500 ) -- the number of numbers. Each of the next n lines contains an integer a_i ( 1 <= q a_i <= q 2 cdot 10^{18} ). It is guaranteed that the number of divisors of each a_i is between 3 and 5 . Print a single integer d -- the number of divisors of the product a_1 cdot a_2 cdot ... cdot a_n modulo 998244353 . Hacks input For hacks, the input needs to be provided in a special format. The first line contains an integer n ( 1 <= q n <= q 500 ) -- the number of numbers. Each of the next n lines contains a prime factorization of a_i . The line contains an integer k_i ( 2 <= q k_i <= q 4 ) -- the number of prime factors of a_i and k_i integers p_{i,j} ( 2 <= q p_{i,j} <= q 2 cdot 10^{18} ) where p_{i,j} is the j -th prime factor of a_i . Before supplying the input to the contestant, a_i = prod p_{i,j} are calculated. Note that each p_{i,j} must be prime, each computed a_i must satisfy a_i <= q 2 cdot10^{18} and must have between 3 and 5 divisors. The contestant will be given only a_i , and not its prime factorization. For example, you need to use this test to get the first sample: From the technical side, this problem is interactive. Therefore, do not forget to output end of line and flush the output. Also, do not read more than you need. To flush the output, use: In the first case, a = 19305 . Its divisors are 1, 3, 5, 9, 11, 13, 15, 27, 33, 39, 45, 55, 65, 99, 117, 135, 143, 165, 195, 297, 351, 429, 495, '... |
The Lyft Level 5 Challenge 2018 Elimination Round (Div. 1 + Div. 2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
44017370 | Rotcod | D | Oct. 8, 2018, 10:52 p.m. | OK | Clang++17 Diagnostics | TESTS | 76 | 156 | 1945600 | 2000 | |
43999288 | nikolapesic2802 | D | Oct. 8, 2018, 12:57 p.m. | OK | Clang++17 Diagnostics | TESTS | 76 | 187 | 8396800 | 2000 | |
43998859 | nikolapesic2802 | D | Oct. 8, 2018, 12:46 p.m. | OK | Clang++17 Diagnostics | TESTS | 76 | 234 | 8499200 | 2000 | |
43981982 | bestFy | D | Oct. 8, 2018, 3:55 a.m. | OK | GNU C++11 | TESTS | 76 | 31 | 0 | 2000 | |
43968913 | yao11617 | D | Oct. 7, 2018, 6:42 p.m. | OK | GNU C++11 | TESTS | 76 | 31 | 0 | 2000 | |
43962302 | JOHNKRAM | D | Oct. 7, 2018, 5:49 p.m. | OK | GNU C++11 | TESTS | 76 | 31 | 0 | 2000 | |
45569776 | code_struck | D | Nov. 11, 2018, 5:02 p.m. | OK | GNU C++11 | TESTS | 76 | 31 | 0 | 2000 | |
44761372 | BLUESKY007 | D | Oct. 24, 2018, 7:21 a.m. | OK | GNU C++11 | TESTS | 76 | 31 | 0 | 2000 | |
44343897 | kek | D | Oct. 15, 2018, 5:55 a.m. | OK | GNU C++11 | TESTS | 76 | 31 | 102400 | 2000 | |
44052551 | krijgertje | D | Oct. 9, 2018, 8:07 p.m. | OK | GNU C++11 | TESTS | 76 | 31 | 102400 | 2000 | |
43983620 | WizKim | D | Oct. 8, 2018, 5:23 a.m. | OK | GNU C++11 | TESTS | 76 | 31 | 102400 | 2000 | |
43974339 | asdcvbn | D | Oct. 7, 2018, 8:22 p.m. | OK | GNU C++11 | TESTS | 76 | 31 | 307200 | 2000 | |
43987913 | xymtxdy | D | Oct. 8, 2018, 8:26 a.m. | OK | GNU C++11 | TESTS | 76 | 31 | 2764800 | 2000 | |
43982806 | AngrySeal | D | Oct. 8, 2018, 4:34 a.m. | OK | GNU C++14 | TESTS | 76 | 31 | 102400 | 2000 | |
43975503 | wakaka | D | Oct. 7, 2018, 8:49 p.m. | OK | GNU C++14 | TESTS | 76 | 31 | 204800 | 2000 | |
66037995 | Nagrarok | D | Nov. 30, 2019, 12:30 p.m. | OK | GNU C++14 | TESTS | 76 | 31 | 204800 | 2000 | |
44020109 | MeePwn | D | Oct. 9, 2018, 3 a.m. | OK | GNU C++14 | TESTS | 76 | 31 | 204800 | 2000 | |
43999947 | joyo | D | Oct. 8, 2018, 1:16 p.m. | OK | GNU C++14 | TESTS | 76 | 31 | 204800 | 2000 | |
43994996 | shivam7 | D | Oct. 8, 2018, 11:04 a.m. | OK | GNU C++14 | TESTS | 76 | 31 | 204800 | 2000 | |
43978289 | endlessSecond | D | Oct. 7, 2018, 11:18 p.m. | OK | GNU C++14 | TESTS | 76 | 31 | 204800 | 2000 | |
43973715 | Ferume | D | Oct. 7, 2018, 8:10 p.m. | OK | GNU C++14 | TESTS | 76 | 31 | 204800 | 2000 | |
43972870 | n_dao107 | D | Oct. 7, 2018, 8 p.m. | OK | GNU C++14 | TESTS | 76 | 31 | 204800 | 2000 | |
43969344 | TimonKnigge | D | Oct. 7, 2018, 6:45 p.m. | OK | GNU C++14 | TESTS | 76 | 31 | 204800 | 2000 | |
43970104 | lelkok220 | D | Oct. 7, 2018, 6:52 p.m. | OK | GNU C++17 | TESTS | 76 | 31 | 102400 | 2000 | |
48767802 | mandinga | D | Jan. 22, 2019, 8:25 p.m. | OK | GNU C++17 | TESTS | 76 | 31 | 204800 | 2000 | |
48767551 | mandinga | D | Jan. 22, 2019, 8:14 p.m. | OK | GNU C++17 | TESTS | 76 | 31 | 204800 | 2000 | |
48767398 | mandinga | D | Jan. 22, 2019, 8:08 p.m. | OK | GNU C++17 | TESTS | 76 | 31 | 204800 | 2000 | |
44052594 | CodingKnight | D | Oct. 9, 2018, 8:09 p.m. | OK | GNU C++17 | TESTS | 76 | 31 | 204800 | 2000 | |
44052091 | CodingKnight | D | Oct. 9, 2018, 7:49 p.m. | OK | GNU C++17 | TESTS | 76 | 31 | 204800 | 2000 | |
43973028 | RAVEman | D | Oct. 7, 2018, 8:01 p.m. | OK | GNU C++17 | TESTS | 76 | 31 | 204800 | 2000 | |
43965517 | Danylo99 | D | Oct. 7, 2018, 6:12 p.m. | OK | GNU C++17 | TESTS | 76 | 31 | 204800 | 2000 | |
43962891 | alex9801 | D | Oct. 7, 2018, 5:53 p.m. | OK | GNU C++17 | TESTS | 76 | 31 | 204800 | 2000 | |
43961228 | KrK | D | Oct. 7, 2018, 5:43 p.m. | OK | GNU C++17 | TESTS | 76 | 31 | 204800 | 2000 | |
44964996 | Martynas | D | Oct. 27, 2018, 6:40 p.m. | OK | Go | TESTS | 76 | 62 | 0 | 2000 | |
61330182 | vjudge3 | D | Sept. 26, 2019, 2:46 p.m. | OK | Go | TESTS | 76 | 77 | 0 | 2000 | |
61330122 | WangJialei | D | Sept. 26, 2019, 2:45 p.m. | OK | Go | TESTS | 76 | 77 | 0 | 2000 | |
43966104 | eatmore | D | Oct. 7, 2018, 6:17 p.m. | OK | Java 8 | TESTS | 76 | 140 | 0 | 2000 | |
43972843 | Lewin | D | Oct. 7, 2018, 8 p.m. | OK | Java 8 | TESTS | 76 | 156 | 0 | 2000 | |
43984169 | SrapZark | D | Oct. 8, 2018, 5:52 a.m. | OK | Java 8 | TESTS | 76 | 171 | 0 | 2000 | |
44017765 | vjudge1 | D | Oct. 8, 2018, 11:39 p.m. | OK | Java 8 | TESTS | 76 | 171 | 0 | 2000 | |
44007521 | kusomushi | D | Oct. 8, 2018, 4:35 p.m. | OK | Java 8 | TESTS | 76 | 171 | 0 | 2000 | |
43997629 | IDzekh | D | Oct. 8, 2018, 12:16 p.m. | OK | Java 8 | TESTS | 76 | 171 | 0 | 2000 | |
43984150 | SrapZark | D | Oct. 8, 2018, 5:51 a.m. | OK | Java 8 | TESTS | 76 | 171 | 0 | 2000 | |
43978227 | intrepidcoder | D | Oct. 7, 2018, 11:13 p.m. | OK | Java 8 | TESTS | 76 | 186 | 0 | 2000 | |
43975366 | intrepidcoder | D | Oct. 7, 2018, 8:46 p.m. | OK | Java 8 | TESTS | 76 | 186 | 0 | 2000 | |
43967109 | AQT | D | Oct. 7, 2018, 6:25 p.m. | OK | Java 8 | TESTS | 76 | 186 | 0 | 2000 | |
43975428 | omikad | D | Oct. 7, 2018, 8:47 p.m. | OK | Mono C# | TESTS | 76 | 78 | 3686400 | 2000 | |
43967168 | kuuso | D | Oct. 7, 2018, 6:26 p.m. | OK | Mono C# | TESTS | 76 | 140 | 102400 | 2000 | |
43974673 | Volpe | D | Oct. 7, 2018, 8:29 p.m. | OK | MS C++ | TESTS | 76 | 78 | 0 | 2000 | |
45482531 | mltang | D | Nov. 9, 2018, 3:33 p.m. | OK | MS C++ | TESTS | 76 | 93 | 0 | 2000 | |
43975134 | Volpe | D | Oct. 7, 2018, 8:39 p.m. | OK | MS C++ | TESTS | 76 | 93 | 0 | 2000 | |
61119845 | vjudge5 | D | Sept. 23, 2019, 2:04 p.m. | OK | MS C++ | TESTS | 76 | 93 | 0 | 2000 | |
61021318 | vjudge4 | D | Sept. 21, 2019, 2:40 p.m. | OK | MS C++ | TESTS | 76 | 93 | 102400 | 2000 | |
44019258 | vjudge1 | D | Oct. 9, 2018, 2:02 a.m. | OK | MS C++ | TESTS | 76 | 93 | 307200 | 2000 | |
61327028 | vjudge3 | D | Sept. 26, 2019, 1:59 p.m. | OK | MS C++ | TESTS | 76 | 108 | 102400 | 2000 | |
61196436 | vjudge3 | D | Sept. 24, 2019, 5:49 a.m. | OK | MS C++ | TESTS | 76 | 109 | 0 | 2000 | |
44189139 | NguyenfromVN | D | Oct. 12, 2018, 2:18 p.m. | OK | MS C++ | TESTS | 76 | 124 | 102400 | 2000 | |
44187309 | NguyenfromVN | D | Oct. 12, 2018, 1:38 p.m. | OK | MS C++ | TESTS | 76 | 124 | 102400 | 2000 | |
68980461 | AleksanderBalobanov | D | Jan. 17, 2020, 10:30 a.m. | OK | MS C++ 2017 | TESTS | 76 | 93 | 409600 | 2000 | |
43973459 | pedrosorio | D | Oct. 7, 2018, 8:06 p.m. | OK | PyPy 2 | TESTS | 76 | 420 | 2662400 | 2000 | |
44022413 | YESMAths | D | Oct. 9, 2018, 5:27 a.m. | OK | PyPy 2 | TESTS | 76 | 452 | 7577600 | 2000 | |
44022345 | YESMAths | D | Oct. 9, 2018, 5:25 a.m. | OK | PyPy 2 | TESTS | 76 | 452 | 7577600 | 2000 | |
43997950 | dalex | D | Oct. 8, 2018, 12:24 p.m. | OK | PyPy 2 | TESTS | 76 | 670 | 8704000 | 2000 | |
44276409 | c1729 | D | Oct. 13, 2018, 10:07 p.m. | OK | PyPy 2 | TESTS | 76 | 904 | 8704000 | 2000 | |
44272380 | c1729 | D | Oct. 13, 2018, 7:10 p.m. | OK | PyPy 2 | TESTS | 76 | 904 | 9011200 | 2000 | |
44273583 | c1729 | D | Oct. 13, 2018, 7:45 p.m. | OK | PyPy 2 | TESTS | 76 | 935 | 9011200 | 2000 | |
49682926 | Stephan | D | Feb. 10, 2019, 4:38 a.m. | OK | PyPy 3 | TESTS | 76 | 343 | 1536000 | 2000 | |
43973343 | nadchu | D | Oct. 7, 2018, 8:05 p.m. | OK | PyPy 3 | TESTS | 76 | 343 | 8089600 | 2000 | |
43980985 | PiscesDream | D | Oct. 8, 2018, 2:57 a.m. | OK | PyPy 3 | TESTS | 76 | 389 | 7782400 | 2000 | |
43973414 | flygrounder | D | Oct. 7, 2018, 8:06 p.m. | OK | PyPy 3 | TESTS | 76 | 467 | 1024000 | 2000 | |
44013986 | Coding_genius | D | Oct. 8, 2018, 7:42 p.m. | OK | PyPy 3 | TESTS | 76 | 608 | 6860800 | 2000 | |
44013958 | Coding_genius | D | Oct. 8, 2018, 7:41 p.m. | OK | PyPy 3 | TESTS | 76 | 623 | 6963200 | 2000 | |
43974535 | Savit_Gupta | D | Oct. 7, 2018, 8:26 p.m. | OK | PyPy 3 | TESTS | 76 | 655 | 9216000 | 2000 | |
43976907 | whatshisbucket | D | Oct. 7, 2018, 9:47 p.m. | OK | Python 3 | TESTS | 76 | 249 | 0 | 2000 | |
65805147 | NocturneBflat | D | Nov. 27, 2019, 8:34 a.m. | OK | Python 3 | TESTS | 76 | 358 | 512000 | 2000 | |
47393614 | ivanzuki | D | Dec. 23, 2018, 9:44 a.m. | OK | Python 3 | TESTS | 76 | 436 | 6246400 | 2000 | |
47393556 | ivanzuki | D | Dec. 23, 2018, 9:41 a.m. | OK | Python 3 | TESTS | 76 | 451 | 6348800 | 2000 | |
44094856 | Gegege337 | D | Oct. 10, 2018, 10:36 p.m. | OK | Python 3 | TESTS | 76 | 592 | 102400 | 2000 | |
44544018 | limed | D | Oct. 19, 2018, 12:44 p.m. | OK | Scala | TESTS | 76 | 624 | 102400 | 2000 | |
45798528 | limed | D | Nov. 16, 2018, 12:07 p.m. | OK | Scala | TESTS | 76 | 670 | 307200 | 2000 | |
44544292 | limed | D | Oct. 19, 2018, 12:50 p.m. | OK | Scala | TESTS | 76 | 670 | 307200 | 2000 | |
43970325 | yakamoto | D | Oct. 7, 2018, 6:54 p.m. | OK | Scala | TESTS | 76 | 795 | 0 | 2000 |
Back to search problems