← All problemsSign in

Lopymonials

It was math class and Lukas' teacher had just defined a polynomial of degree N as an expression of the form: p(x) = a1*x1 + a2*x2 + .... + aN*xN mod(109+7) However, Lukas wasn't paying much attention to what the teacher was saying and so he thought that the teacher had defined a lopymonial of degree N as an expression of the form: l(x) = a1*1x + a2*2x + .... + aN*Nx mod(109+7) The teacher now

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start