Editorial for Факториал
Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.
Submitting an official solution before solving the problem yourself is a bannable offence.
Hint 1.
Нәтиже бірнеше сандардың көбейтіндісі ретінде құралады.
Hint 2.
Көбейтуді \(1\)-ден бастап, мәнді біртіндеп арттырып, \(n\)-ге дейін жалғастыруға болады.
Hint 3.
Бастапқы мәнді 1 деп алып, әр қадамда келесі санға көбейтіп, соңғы нәтижені есептеңіз.