Heaven or Hell
CodeChefOpen on judge ↗
Problem description: Once upon a time, there lived a man who had a history of committing sins. Crossing his threshold of sins, he finally died. He wishes that he continues his path of afterlife in heaven but had a sinister life. He pleaded God to allow him the door entry to heaven. God took his plead and told him a number. God said-“Thy want to enter the heaven, Should he tell me the correct numbe
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