← All problemsSign in

CURVY ROADS AHEAD

On the planet curvy everything is curved. Even light travel in a curve there. They imported a rectangular grid and some very delicious tsquare donuts from nearby planet straighty. The size of grid is m x n and area of a donut is one unit square. Donuts are placed such that : For every value of x from 0 to m, a series is created which determines the position of y coordinate on which donut is plac

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