blob: 346edfa43d658df6ca70fc44a2e146804b14466b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/usr/bin/env python3
from sys import stdin
puncs_list = [[''], ['+', '-', '*', '/']]
def puncs(length):
global puncs_list
if length < len(puncs_list):
return puncs_list[length]
else: # length is certainly equal to len(puncs_list)
l = []
for i in puncs_list[-1]:
l.extend([i + c for c in '+-*/'])
puncs_list.append(l)
return l
def ar(m, n):
i = 1
while True:
s = n * i
if __name__ == '__main__':
#(m, n) = tuple(stdin.readline().split()[:2])
#print(ar(int(m), n))
for i in range(5):
print(puncs(i))
|