← All problemsSign in

Clash of Universes

In the game of Clash of Universes builders play a major role as they do all the construction you require. Also, they are very valuable. You started playing COU and you decided to purchase $N$ builders. But there is a problem, the contractor charges you according to the number of builders you purchase. The first builder costs you $K$ gems. If you purchase a second builder it costs you $2*K$ gems, a

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