← All problemsSign in

Keplers Law

CodeChefRating 992Open on judge ↗

Kepler’s Law states that the planets move around the sun in elliptical orbits with the sun at one focus. Kepler's 3rd law is The Law of Periods, according to which: - The **square of the time period** of the planet is directly proportional to the **cube of the semimajor axis** of its orbit. You are given the Time periods ($T_1, T_2$) and Semimajor Axes ($R_1, R_2$) of two planets orbiting the sa

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