← All problemsSign in

An Easy Problem

There are some websites which blocks your access if you are below a certain age (Let's take 18 for this problem). Ankush being one of a developer of such a website has been given a responsibility to write a program that implements such a filter. Ankush is very tired and he doesn't want to apply such a filter. He writes a program that prints 1 (1 means permission granted and 0 means permission den

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