Add or Multiply
CodeChefOpen on judge ↗
Hussain was feeling very bored in his physics class. Just hearing theorems and formulas about mechanics and electronics makes him utterly sick. He was very bored so he just started writing random numbers separated by spaces on the pages of his physics book. For example, he wrote the sequence 1 2 3 four times. Each one with different sequence of arithmetic operations between numbers, i.e. he wrote
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