Create generator.py
This commit is contained in:
parent
afd661e85e
commit
55f65cac5d
1 changed files with 11 additions and 0 deletions
11
library/generator.py
Normal file
11
library/generator.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
import random
|
||||
C = input()
|
||||
|
||||
if C==1:
|
||||
print 1
|
||||
elif C==2:
|
||||
print 2
|
||||
elif C==3 or C==4:
|
||||
print random.randint(3, 100)
|
||||
else:
|
||||
print random.randint(2**(C**3-1), 2**(C**3))
|
Loading…
Reference in a new issue