← All problemsSign in

Repeated Calculations

Kaneki and Hide are bored at college, so they decide to play a small game to test how well both of them are at calculating large values. At the beginning of the game, Kaneki picks two numbers $a$ and $b$, and Hide picks two numbers $c$ and $d$. Initially, two numbers, **1000 and 7**, are written on a blackboard (these numbers will always be the first two numbers on the board). When it’s Kaneki’s t

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