Mission Sirius Black
CodeChefOpen on judge ↗
To rescue Sirius Black, Harry goes to department of mysteries where many glass spheres are kept.He needs to find the sphere holding prophecy about Harry and Lord Voldemort. He gets vision of two numbers i and j and the sum from ith term to jth term of the sequence 1,4,18,96,600..... gives the shelf number containing that glass sphere. Output the sum modulo 109+7 to help Harry in his mission to re
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start