From 9e28e4c7b67c54229df11d355047ac8a88ea1817 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Sun, 15 Dec 2019 15:09:13 +0700 Subject: Normalize pathname --- ntu/hamar.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 ntu/hamar.py (limited to 'ntu/hamar.py') 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)) -- cgit 1.4.1