Wingardium Leviosa
“It's leviOsa, not levioSA!” Hermione did the "swish and flick" to levitate the feather. Ron being annoyed ask her to solve a different task. Ron ask her Q queries. In each query he provides her a value N and ask her to find F(N). $$F(N) = \sum\limits_{R = 0}^{\lfloor \frac{N}{2} \rfloor} \Biggl( \binom{N}{R} - \binom{N - R}{R} \Biggl)$$, where $$\binom{n}{r} = \frac{n!}{r! * (n - r)!}$$ As H
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