Neeraj Wins Lottery
CodeChefOpen on judge ↗
Our CEO, Neeraj wants to buy some lottery tickets. After analyzing most of the lottery tickets of previous lottery withdrawn, he finds a logic behind it, where he can win the lottery easily. Suppose the lottery number is of N digits. If the number is equal to the sum of the Nth the power of its digits, the he will win the lottery. You as a programmer help Neeraj by making a program that whether h
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