← All problemsSign in

Cakewalk

Harshit can multiply only two integers when both of the integers are in the range of 1 and 9 (both inclusive) together. And if the Harshit can't multiply both the numbers then he will give -1 as the answer. So if Harshit can calculate the answer of two numbers then print X*Y (product of two numbers ) and in other case print -1. ###Input: - The first input line has two integer X and Y. #

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start