← All problemsSign in

Max Circumference

CodeChefRating 3000Open on judge ↗

In the magic land there is a triangle ABC. You have N spell cards. Each card has two parameters, i-th card has parameters x[i] and y[i]. Using of the i-th spell card add x[i] to the x-coordinate of the point A and add y[i] to the y-coordinate of the point A. So if A has coordinates (X, Y) it will be moving to (X + x[i], Y + y[i]) by using this card. You can use at most K spell cards. Apply

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