The factorial of a positive integer n is the product of all positive integers less than or equal to n.
A clumsy factorial uses integers in decreasing order from n down to *), division (/), addition (+), and subtraction (-).
Standard arithmetic operator precedence applies: multiplication and division are computed before addition and subtraction, and operations of the same precedence are evaluated from left to right. Division uses floor division, rounding down to the nearest integer.
Given an integer n, return the clumsy factorial of n.
Constraints:
n
The factorial of a positive integer n is the product of all positive integers less than or equal to n.
A clumsy factorial uses integers in decreasing order from n down to *), division (/), addition (+), and subtraction (-).
Standard arithmetic operator precedence applies: multiplication and division are computed before addition and subtraction, and operations of the same precedence are evaluated from left to right. Division uses floor division, rounding down to the nearest integer.
Given an integer n, return the clumsy factorial of n.
Constraints:
n