about summary refs log tree commit diff
path: root/ntu/hamar.py
diff options
context:
space:
mode:
authorNguyễn Gia Phong <vn.mcsinyx@gmail.com>2019-12-15 15:09:13 +0700
committerNguyễn Gia Phong <vn.mcsinyx@gmail.com>2019-12-15 15:09:13 +0700
commit9e28e4c7b67c54229df11d355047ac8a88ea1817 (patch)
tree0d9d40db69613c2c49564a3f1987a005d61f4db3 /ntu/hamar.py
parent67393f42f41ab92219deb549f711121c4dab845b (diff)
downloadcp-9e28e4c7b67c54229df11d355047ac8a88ea1817.tar.gz
Normalize pathname
Diffstat (limited to 'ntu/hamar.py')
-rw-r--r--ntu/hamar.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/ntu/hamar.py b/ntu/hamar.py
new file mode 100644
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))