Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a875f9b

Browse files
Solution Accepted
1 parent 8ab8112 commit a875f9b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/python3
2+
3+
import math
4+
import os
5+
import random
6+
import re
7+
import sys
8+
9+
def extraLongFactorials(n):
10+
num = 1
11+
while n >= 1:
12+
num = num * n
13+
n = n - 1
14+
print (num)
15+
16+
17+
if __name__ == '__main__':
18+
n = int(input())
19+
20+
extraLongFactorials(n)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /