Lazy Jasmine
CodeChefOpen on judge ↗
Jasmine is a very lazy girl. She always sleeps in Maths class. One day her teacher catches her sleeping and tells her that he would mark her absent for the whole semester. While he pretends to be strict, he is actually very kind-hearted. So he wants to give Jasmine a chance to prove herself. He gives her a problem. If Jasmine can answer it correctly, he will forgive her. Can you help Jasmine find
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