Game of Darts
CodeChefOpen on judge ↗
Problem description Mr. Bash got fed up with FIFA. Now he wants to concentrate on the game of Darts. A standard darts target consists of K concentric circles with the corresponding radii R1, R2 ...RK with the common center in the origin (0,0). If his shot lands inside the smallest circle, he will get K points. Landing between the ith and the (i+1)th circle will give him i points. This means tha
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