← All problemsSign in

GENESIS YEAR

A $genesis$ year is considered to be lucky in DBATU. No one knows what it is except you. People in DBATU want your help find when will the genesis year occur for their family. A genesis year for a family is the one in which the age of the father is twice the age of his son. For example, if the son's age is 15, the father's 30 and the grandfather's age is 60 in a particular year then it is a genesi

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