← All problemsSign in

Sum of Factorials

Problem description. Given a series of numbers, find the sume of all the factorials of every number in the series. For example, given the input 2 3 you should output 8 because (2*1+3*2*1 = 2+6 = 8) Similarly 4 2 should return 26 (4*3*2*1+2*1) Input Input description. The input will consist of a series of positive numbers. Output Output description. The output will be the sum of the f

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