about summary refs log tree commit diff
path: root/NTU/hamar.py
diff options
context:
space:
mode:
authorRaphael McSinyx <vn.mcsinyx@gmail.com>2016-10-08 09:56:43 +0700
committerRaphael McSinyx <vn.mcsinyx@gmail.com>2016-10-08 09:56:43 +0700
commit2a7bc10f6c011d19fb3b0e73068f7e1a9c30ace0 (patch)
tree95190a32ec1c7098494849eea5a5ba6b53289585 /NTU/hamar.py
parent207cc2ae9893b0cdecd20119b9ede37f73cd4a1e (diff)
downloadcp-2a7bc10f6c011d19fb3b0e73068f7e1a9c30ace0.tar.gz
Initial commit
Diffstat (limited to 'NTU/hamar.py')
-rwxr-xr-xNTU/hamar.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/NTU/hamar.py b/NTU/hamar.py
new file mode 100755
index 0000000..346edfa
--- /dev/null
+++ b/NTU/hamar.py
@@ -0,0 +1,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))