Swish Game
Toofan is playing an exciting game where there are $N$ rings, and for each ring, Toofan can either SWISH or PASS. The goal of the game is to achieve **at least** $K$ swishes. The game will end **immediately** when *at least one* of the following two conditions is met: 1. Toofan has finished all the $N$ rings; or 2. It it impossible to win the game any more. This means it is impossible for Toof
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