Dynamic Display Length
CodeChefOpen on judge ↗
A mathematician wants to create a calculator, he wants to add an extra feature which displays the number of digits. Now we want you to help the mathematician in finding the number of digits of the given expression. NOTE: 1.) Mathematician uses only !,*,/,^ operators. 2.) Since ! being an unary operator, second number is assigned as 0. i.e,. 5!0 is to find number of digits of factorial(5). 3.)
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