Manthan, Codefest 16

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
633 Manthan, Codefest 16 FINISHED False 9000 281105104 Feb. 26, 2016, 5:15 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 604 ) H Fibonacci-ish II PROGRAMMING data structures implementation 2800

B'Yash is finally tired of computing the length of the longest Fibonacci-ish sequence. He now plays around with more complex things such as Fibonacci-ish potentials. Fibonacci-ish potential of an array ai is computed as follows: You are given an array ai of length n and q ranges from lj to rj. For each range j you have to compute the Fibonacci-ish potential of the array bi, composed using all elements of ai from lj to rj inclusive. Find these potentials modulo m. The first line of the input contains integers of n and m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8930 xe2 x80 x89000) -- the length of the initial array and the modulo, respectively. The next line contains n integers ai (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- elements of the array. Then follow the number of ranges q (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89q xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8930 xe2 x80 x89000). Last q lines contain pairs of indices li and ri (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89li xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ri xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n) -- ranges to compute Fibonacci-ish potentials. Print q lines, i-th of them must contain the Fibonacci-ish potential of the i-th range modulo m. For the purpose of this problem define Fibonacci numbers as follows: In the first query, the subarray [1,2,1] can be formed using the minimal set {1,2}. Thus, the potential of this subarray is 1*1+2*1=3. '...

Tutorials

Manthan, Codefest 16: Editorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
27897449 stony_oi H June 19, 2017, 6:45 a.m. OK GNU C++ TESTS 83 982 2560000 2800
27765170 xzyxzy H June 14, 2017, 12:26 a.m. OK GNU C++ TESTS 83 1045 2560000 2800
28548352 y20070316 H July 14, 2017, 12:34 p.m. OK GNU C++ TESTS 83 1092 4403200 2800
16975026 RNS3 H March 27, 2016, 3:18 p.m. OK GNU C++ TESTS 83 1232 4505600 2800
40072842 vjudge5 H July 8, 2018, 1:19 a.m. OK GNU C++ TESTS 83 1248 2457600 2800
40072801 vjudge1 H July 8, 2018, 1:16 a.m. OK GNU C++ TESTS 83 1482 2457600 2800
25392774 zyding H March 11, 2017, 4:01 a.m. OK GNU C++ TESTS 83 1497 4608000 2800
17285018 SanSiroWaltz H April 12, 2016, 2:25 a.m. OK GNU C++ TESTS 83 1591 2867200 2800
16418826 rodrigozhou H Feb. 28, 2016, 11:49 p.m. OK GNU C++ TESTS 83 1856 2560000 2800
16911601 guille H March 24, 2016, 6:37 p.m. OK GNU C++ TESTS 83 1950 6246400 2800
17259863 Adherer H April 10, 2016, 4:45 a.m. OK GNU C++11 TESTS 83 1153 1228800 2800
16377586 SirShokoladina H Feb. 27, 2016, 9:19 a.m. OK GNU C++11 TESTS 83 1185 1228800 2800
16377561 SirShokoladina H Feb. 27, 2016, 9:18 a.m. OK GNU C++11 TESTS 83 1216 1331200 2800
16376684 matthew99 H Feb. 27, 2016, 8:48 a.m. OK GNU C++11 TESTS 83 1248 2457600 2800
16377540 SirShokoladina H Feb. 27, 2016, 9:18 a.m. OK GNU C++11 TESTS 83 1262 1433600 2800
16367722 SirShokoladina H Feb. 26, 2016, 7:24 p.m. OK GNU C++11 TESTS 83 1263 1228800 2800
16378007 SirShokoladina H Feb. 27, 2016, 9:33 a.m. OK GNU C++11 TESTS 83 1294 1228800 2800
16376642 matthew99 H Feb. 27, 2016, 8:47 a.m. OK GNU C++11 TESTS 83 1341 71065600 2800
16391926 sd0061 H Feb. 27, 2016, 7:44 p.m. OK GNU C++11 TESTS 83 1357 1945600 2800
16391891 sd0061 H Feb. 27, 2016, 7:42 p.m. OK GNU C++11 TESTS 83 1419 1843200 2800
40984958 ReaLNero1 H July 30, 2018, 7:40 p.m. OK GNU C++14 TESTS 83 265 8499200 2800
24637324 simonlindholm H Feb. 13, 2017, 8:36 p.m. OK GNU C++14 TESTS 83 265 10444800 2800
24633545 simonlindholm H Feb. 13, 2017, 5:52 p.m. OK GNU C++14 TESTS 83 296 10444800 2800
24633094 simonlindholm H Feb. 13, 2017, 5:26 p.m. OK GNU C++14 TESTS 83 389 232857600 2800
24632713 simonlindholm H Feb. 13, 2017, 5:03 p.m. OK GNU C++14 TESTS 83 436 230809600 2800
24623950 simonlindholm H Feb. 13, 2017, 8:17 a.m. OK GNU C++14 TESTS 83 467 230809600 2800
24624267 simonlindholm H Feb. 13, 2017, 8:38 a.m. OK GNU C++14 TESTS 83 514 230809600 2800
24617302 simonlindholm H Feb. 12, 2017, 9:17 p.m. OK GNU C++14 TESTS 83 623 229990400 2800
24617055 simonlindholm H Feb. 12, 2017, 8:55 p.m. OK GNU C++14 TESTS 83 701 229990400 2800
31273391 iiiLoveYOU2018 H Oct. 13, 2017, 12:03 p.m. OK GNU C++14 TESTS 83 951 2560000 2800
69962972 ruo H Feb. 1, 2020, 11:57 a.m. OK GNU C++17 TESTS 83 1185 14848000 2800
43718723 ivan100sic H Oct. 3, 2018, 8:52 a.m. OK GNU C++17 TESTS 83 2277 3276800 2800
48855974 Slaaava H Jan. 23, 2019, 6:55 p.m. OK GNU C++17 TESTS 83 2464 14336000 2800
67656967 hjk1030 H Dec. 26, 2019, 2:16 p.m. OK GNU C++17 TESTS 83 2683 2457600 2800
57891527 tjrac607203153 H July 28, 2019, 12:01 p.m. OK GNU C++17 TESTS 83 3042 2662400 2800
53169584 vjudge1 H April 22, 2019, 8:15 p.m. OK GNU C++17 TESTS 83 3181 5017600 2800
62117604 C20191522 H Oct. 8, 2019, 1:46 p.m. OK GNU C++17 TESTS 83 3384 9011200 2800
61955193 Lucky_Glass H Oct. 6, 2019, 5:37 a.m. OK GNU C++17 TESTS 83 3728 8089600 2800
61955288 vjudge3 H Oct. 6, 2019, 5:39 a.m. OK GNU C++17 TESTS 83 3790 8089600 2800
40073371 Dance_Of_Faith H July 8, 2018, 2:01 a.m. OK GNU C++17 TESTS 83 3821 921600 2800
16379917 mmaxio H Feb. 27, 2016, 10:54 a.m. OK Java 8 TESTS 83 2292 0 2800
16379841 mmaxio H Feb. 27, 2016, 10:51 a.m. OK Java 8 TESTS 83 3447 0 2800
16379881 mmaxio H Feb. 27, 2016, 10:52 a.m. OK Java 8 TESTS 83 3510 0 2800
62396379 vjudge1 H Oct. 12, 2019, 5:38 a.m. OK MS C++ TESTS 83 3946 921600 2800
44421550 vjudge2 H Oct. 16, 2018, 11:19 p.m. OK MS C++ TESTS 83 3946 3174400 2800
43452252 vjudge4 H Sept. 26, 2018, 1:40 p.m. OK MS C++ TESTS 83 4009 1024000 2800
20329486 Umqra H Sept. 1, 2016, 7:12 p.m. OK MS C++ TESTS 83 4102 1843200 2800
44231809 vjudge3 H Oct. 13, 2018, 1:01 a.m. OK MS C++ TESTS 83 4586 7987200 2800
34615500 WooDeND H Jan. 27, 2018, 7:05 p.m. OK MS C++ TESTS 83 4710 2969600 2800
48939039 nolanderc H Jan. 25, 2019, 3:37 p.m. OK Rust TESTS 83 795 3276800 2800
48914734 nolanderc H Jan. 25, 2019, 4:50 a.m. OK Rust TESTS 83 842 3481600 2800
48914455 nolanderc H Jan. 25, 2019, 4:39 a.m. OK Rust TESTS 83 873 3481600 2800
48914879 nolanderc H Jan. 25, 2019, 4:55 a.m. OK Rust TESTS 83 889 3481600 2800
48913892 nolanderc H Jan. 25, 2019, 4:18 a.m. OK Rust TESTS 83 936 2355200 2800
48714411 nolanderc H Jan. 22, 2019, 10:24 a.m. OK Rust TESTS 83 951 2355200 2800
48714625 nolanderc H Jan. 22, 2019, 10:32 a.m. OK Rust TESTS 83 982 2355200 2800
48708613 nolanderc H Jan. 22, 2019, 7:16 a.m. OK Rust TESTS 83 3961 2355200 2800
48694792 nolanderc H Jan. 21, 2019, 8:13 p.m. OK Rust TESTS 83 4102 2355200 2800
48548301 nolanderc H Jan. 18, 2019, 9:48 p.m. OK Rust TESTS 83 4102 2355200 2800

remove filters

Back to search problems