← All problemsSign in

Question 1

Find the sum of factorial of first N natural numbers. Input - The input contains a single integer N. Output - Output a single number which is the result of the above problem. Constraints - 1 ≤ N ≤ 40 Example 1 Input: 10 Output: 4037913 Example 2 Input: 40 Output: 6349105627901327897 Explanation Example 1. 1! + 2! + 3! + .... 10! = 4037913

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