← All problemsSign in

First Day

Today is your first class at the College. Alice, a student at the College, has received his first assignment. He will be given a string as input. His task is to print "Moon'' if the input is "Crypto''; otherwise, he will have to print "Space''. Can you help Alice in solving his first assignment? Note that the quotation marks are just for clarity. They are not part of the input string, and should

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