ENG
RUS
Timus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board
Discussion of Problem
1083
. Factorials!!!
Easy solution
Posted by
antoniu200
23 Jun 2019 15:24
Read n
Get string of "!"
Get length of string of "!"
result = 1
while n > 0
begin
result *= n;
n -= length of string of "!"
end
write result
© 2000–2024
Timus Online Judge Team
. All rights reserved.