The Lottery
CodeChefOpen on judge ↗
Nihal goes to lottery shop and buys a ticket which has two sides . Three numbers $N$ , $p$ , and $q$ are printed on the front side of the ticket while there are four numbers $a$ , $b$ , $c$ , and $d$ on the back side. As Nihal is a great observer he finds a pattern to predict if he is getting a lucky ticket or not. Every ticket has its value $X$ and if $X$ is even then then the ticket is $LU
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