← All problemsSign in

Squid Game - Piggy Bank

CodeChefRating 156Open on judge ↗

In the deadly "Squid Game," the participants start with $N$ players. After the game ends, only $K$ players survive. The prize pool increases based on the number of players eliminated. Each eliminated player contributes a fixed amount of $10,000$ units to the prize pool. Your task is to calculate the total prize money added to the pool, given the number of players $N$ at the start of the game and

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