mirror of
https://github.com/Xevion/contest.git
synced 2025-12-08 06:06:40 -06:00
update .gitignore, remove .vscode and .idea folders, move berkely to ysu-acm
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import os, sys, math
|
||||
|
||||
path = os.path.join(sys.path[0], 'input')
|
||||
data = open(path, 'r').read().split('\n')
|
||||
# To keep with the times of 1991, we will use the constraints of Python2 for max integers
|
||||
maxInt = 9223372036854775807
|
||||
|
||||
def extend(n):
|
||||
res = 1
|
||||
for x in range(2, n + 1):
|
||||
res = x * res
|
||||
return res
|
||||
|
||||
x = 100
|
||||
print(extend(x))
|
||||
print(math.log(extend(x), 10))
|
||||
Reference in New Issue
Block a user