Manthan, Codefest 17

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
855 Manthan, Codefest 17 FINISHED False 9000 225559499 Sept. 24, 2017, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1798 ) E Salazar Slytherin's Locket PROGRAMMING bitmasks dp 2200

B"Harry came to know from Dumbledore that Salazar Slytherin's locket is a horcrux. This locket was present earlier at 12 Grimmauld Place, the home of Sirius Black's mother. It was stolen from there and is now present in the Ministry of Magic in the office of Dolorous Umbridge, Harry's former Defense Against the Dark Arts teacher. Harry, Ron and Hermione are infiltrating the Ministry. Upon reaching Umbridge's office, they observed a code lock with a puzzle asking them to calculate count of magic numbers between two integers l and r (both inclusive). Harry remembered from his detention time with Umbridge that she defined a magic number as a number which when converted to a given base b, all the digits from 0 to b xe2 x80 x89- xe2 x80 x891 appear even number of times in its representation without any leading zeros. You have to answer q queries to unlock the office. Each query has three integers bi, li and ri, the base and the range for which you have to find the count of magic numbers. First line of input contains q (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89q xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105) -- number of queries. Each of the next q lines contain three space separated integers bi, li, ri (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89bi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8910, 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 x891018). You have to output q lines, each containing a single integer, the answer to the corresponding query. In sample test case 1, for first query, when we convert numbers 4 to 9 into base 2, we get: Out of these, only base 2 representation of 9 has even number of 1 and 0. Thus, the answer is 1. "...

Tutorials

54750

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
43817262 ia7ck E Oct. 5, 2018, 6:14 a.m. OK D TESTS 56 935 74649600 2200
43816936 ia7ck E Oct. 5, 2018, 5:59 a.m. OK D TESTS 56 1996 74342400 2200
30677961 sgtlaugh E Sept. 24, 2017, 3:26 p.m. OK GNU C TESTS 56 389 6348800 2200
35674128 Scut82 E Feb. 25, 2018, 9:30 a.m. OK GNU C++ TESTS 56 233 15667200 2200
35672148 Scut82 E Feb. 25, 2018, 8:09 a.m. OK GNU C++ TESTS 56 234 22118400 2200
30682984 PaidySung E Sept. 24, 2017, 4:20 p.m. OK GNU C++ TESTS 56 264 12697600 2200
30775984 hands_yhy E Sept. 27, 2017, 12:04 p.m. OK GNU C++ TESTS 56 265 9318400 2200
31488512 chinaboy E Oct. 18, 2017, 5:05 p.m. OK GNU C++ TESTS 56 265 30720000 2200
30819492 vjudge5 E Sept. 29, 2017, 3:22 a.m. OK GNU C++ TESTS 56 280 6656000 2200
30698695 black_horse2014 E Sept. 25, 2017, 8:35 a.m. OK GNU C++ TESTS 56 280 9113600 2200
30683381 248926 E Sept. 24, 2017, 4:25 p.m. OK GNU C++ TESTS 56 280 75571200 2200
30699296 kut_ksr1994 E Sept. 25, 2017, 9:11 a.m. OK GNU C++ TESTS 56 295 11264000 2200
30683931 adkroxx E Sept. 24, 2017, 4:33 p.m. OK GNU C++ TESTS 56 296 102400 2200
30699457 ctlchild E Sept. 25, 2017, 9:19 a.m. OK GNU C++11 TESTS 56 218 6963200 2200
30699448 ctlchild E Sept. 25, 2017, 9:18 a.m. OK GNU C++11 TESTS 56 234 7680000 2200
30856286 rqgao2014 E Sept. 30, 2017, 6:23 a.m. OK GNU C++11 TESTS 56 249 204800 2200
36763699 niel_99 E March 31, 2018, 5:17 a.m. OK GNU C++11 TESTS 56 249 10342400 2200
31204680 Kuroni E Oct. 11, 2017, 1:16 a.m. OK GNU C++11 TESTS 56 264 10854400 2200
30693681 ohweonfire E Sept. 25, 2017, 2:21 a.m. OK GNU C++11 TESTS 56 265 102400 2200
47668559 lwhlwh E Dec. 29, 2018, 3:39 a.m. OK GNU C++11 TESTS 56 265 11571200 2200
30685067 Sampson E Sept. 24, 2017, 4:48 p.m. OK GNU C++11 TESTS 56 265 43110400 2200
38972885 annihilation666 E June 5, 2018, 3:36 p.m. OK GNU C++11 TESTS 56 280 3584000 2200
38973325 annihilation666 E June 5, 2018, 3:54 p.m. OK GNU C++11 TESTS 56 280 3584000 2200
50652760 mredigonda E March 1, 2019, 6:17 p.m. OK GNU C++14 TESTS 56 280 15769600 2200
30695400 StillFantasy E Sept. 25, 2017, 4:59 a.m. OK GNU C++14 TESTS 56 296 11468800 2200
30810170 Marco_L_T E Sept. 28, 2017, 4:16 p.m. OK GNU C++14 TESTS 56 311 5836800 2200
30680418 ivan100sic E Sept. 24, 2017, 3:50 p.m. OK GNU C++14 TESTS 56 311 5836800 2200
30683558 namai E Sept. 24, 2017, 4:28 p.m. OK GNU C++14 TESTS 56 311 6246400 2200
44777607 T.V_N E Oct. 24, 2018, 3:03 p.m. OK GNU C++14 TESTS 56 311 7475200 2200
30686042 Aeon E Sept. 24, 2017, 5 p.m. OK GNU C++14 TESTS 56 311 12083200 2200
30681755 Laiu E Sept. 24, 2017, 4:05 p.m. OK GNU C++14 TESTS 56 312 5632000 2200
30688006 wiwitrifai E Sept. 24, 2017, 6:53 p.m. OK GNU C++14 TESTS 56 312 11878400 2200
30678087 Um_nik E Sept. 24, 2017, 3:27 p.m. OK GNU C++14 TESTS 56 327 102400 2200
46783355 Shayan.P E Dec. 9, 2018, 4:35 a.m. OK GNU C++17 TESTS 56 295 5427200 2200
48472766 markotee E Jan. 16, 2019, 10:34 p.m. OK GNU C++17 TESTS 56 295 11366400 2200
48472201 markotee E Jan. 16, 2019, 9:46 p.m. OK GNU C++17 TESTS 56 327 3174400 2200
61344447 sudoBug E Sept. 27, 2019, 3:26 a.m. OK GNU C++17 TESTS 56 327 11571200 2200
50881427 arminjafargholi E March 6, 2019, 9:03 a.m. OK GNU C++17 TESTS 56 327 22016000 2200
46313639 aviroop123 E Nov. 28, 2018, 2:39 p.m. OK GNU C++17 TESTS 56 342 6348800 2200
50881376 arshiya_ E March 6, 2019, 9:02 a.m. OK GNU C++17 TESTS 56 358 22016000 2200
56688171 eidan E July 8, 2019, 1:28 a.m. OK GNU C++17 TESTS 56 358 36249600 2200
49053966 Nazikk E Jan. 27, 2019, 12:27 p.m. OK GNU C++17 TESTS 56 374 19353600 2200
54834908 yuxizi E May 30, 2019, 10:30 a.m. OK GNU C++17 TESTS 56 389 25292800 2200
30690121 Martynas E Sept. 24, 2017, 8:23 p.m. OK Go TESTS 56 592 28364800 2200
30818367 JialinOuyang E Sept. 29, 2017, 1:15 a.m. OK Java 8 TESTS 56 405 0 2200
30682387 uwi E Sept. 24, 2017, 4:12 p.m. OK Java 8 TESTS 56 436 0 2200
30677324 qwerty787788 E Sept. 24, 2017, 3:21 p.m. OK Java 8 TESTS 56 483 0 2200
30676501 niyaznigmatul E Sept. 24, 2017, 3:14 p.m. OK Java 8 TESTS 56 530 0 2200
30680591 mmaxio E Sept. 24, 2017, 3:52 p.m. OK Java 8 TESTS 56 545 0 2200
30736440 Lewin E Sept. 25, 2017, 11:01 p.m. OK Java 8 TESTS 56 577 0 2200
30688755 Ahmad_Elsagheer E Sept. 24, 2017, 7:20 p.m. OK Java 8 TESTS 56 623 2764800 2200
54007786 NatInTheHat E May 11, 2019, 9:37 p.m. OK Java 8 TESTS 56 654 4915200 2200
30676996 VArtem E Sept. 24, 2017, 3:18 p.m. OK Java 8 TESTS 56 670 0 2200
30688641 Ahmad_Elsagheer E Sept. 24, 2017, 7:14 p.m. OK Java 8 TESTS 56 670 14233600 2200
30754748 amethyst3 E Sept. 26, 2017, 3:11 p.m. OK MS C++ TESTS 56 358 121446400 2200
30692143 16silver E Sept. 24, 2017, 11:19 p.m. OK MS C++ TESTS 56 373 204800 2200
68653955 vjudge4 E Jan. 12, 2020, 11:38 a.m. OK MS C++ TESTS 56 389 17100800 2200
69008385 vjudge1 E Jan. 18, 2020, 1:54 a.m. OK MS C++ TESTS 56 530 6348800 2200
69024267 vjudge2 E Jan. 18, 2020, 6:55 a.m. OK MS C++ TESTS 56 686 12595200 2200
30944552 AleksanderBalobanov E Oct. 2, 2017, 1:56 p.m. OK MS C++ TESTS 56 811 55296000 2200
68971878 vjudge3 E Jan. 17, 2020, 7:19 a.m. OK MS C++ TESTS 56 919 23449600 2200
46298575 vjudge1 E Nov. 28, 2018, 5:46 a.m. OK MS C++ TESTS 56 935 29286400 2200
68645457 vjudge5 E Jan. 12, 2020, 8:55 a.m. OK MS C++ TESTS 56 1201 12697600 2200
68655390 vjudge5 E Jan. 12, 2020, 12:04 p.m. OK MS C++ TESTS 56 1216 6041600 2200
69006635 vjudge5 E Jan. 18, 2020, 12:10 a.m. OK MS C++ 2017 TESTS 56 623 9523200 2200
61090792 pajenegod E Sept. 22, 2019, 9:15 p.m. OK PyPy 2 TESTS 56 1980 31232000 2200

remove filters

Back to search problems