summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/io.py3
-rw-r--r--python/python.tex10
-rw-r--r--python/recursion.py2
3 files changed, 15 insertions, 0 deletions
diff --git a/python/io.py b/python/io.py
new file mode 100644
index 0000000..aa16d4c
--- /dev/null
+++ b/python/io.py
@@ -0,0 +1,3 @@
+n, m = map(int, input().split())
+A = list(map(int, input().split()))
+print(n, m, *A)
diff --git a/python/python.tex b/python/python.tex
new file mode 100644
index 0000000..e4346bf
--- /dev/null
+++ b/python/python.tex
@@ -0,0 +1,10 @@
+\section{Python}
+\lstset{language=Python}
+
+\subsection{IO}
+\lstinputlisting{python/io.py}
+
+\subsection{Recursion}
+\lstinputlisting{python/recursion.py}
+
+\lstset{language=C++}
diff --git a/python/recursion.py b/python/recursion.py
new file mode 100644
index 0000000..45e0147
--- /dev/null
+++ b/python/recursion.py
@@ -0,0 +1,2 @@
+import sys
+sys.setrecursionlimit(1000_007)