Very Large Product
CodeChefOpen on judge ↗
Little Aditya got two integers a and b . He want to find out wheather the product a*(a+1)*(a+2)*….*b is positive , negative or zero . Since the the product can be very large he is unable to complete the task. Can you do it for him? Input Two numbers a and b. Output If the product is positive, print Positive. If it is negative, print Negative. If it is zero, print Zero. Constraints Should
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