Spy Number
CodeChefOpen on judge ↗
Write the program to print whether the given number $n=123$ is spy number or not ###Input: - Integer $n$ ###Output: spy number or not spy number ###Constraints - $1 \leq n \leq 100000$ ###Sample Input: 123 ###Sample Output: spy number ###EXPLANATION: A number is said to be a spy number if the sum of all the digits is equal to the product of all digits.
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