summaryrefslogtreecommitdiff
path: root/content/python
diff options
context:
space:
mode:
Diffstat (limited to 'content/python')
-rw-r--r--content/python/io.py3
-rw-r--r--content/python/python.tex10
-rw-r--r--content/python/recursion.py2
3 files changed, 15 insertions, 0 deletions
diff --git a/content/python/io.py b/content/python/io.py
new file mode 100644
index 0000000..aa16d4c
--- /dev/null
+++ b/content/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/content/python/python.tex b/content/python/python.tex
new file mode 100644
index 0000000..a778b85
--- /dev/null
+++ b/content/python/python.tex
@@ -0,0 +1,10 @@
+\section{Python}
+\bgroup
+\lstset{language=Python}
+
+\subsection{Recursion}
+\sourcecode{python/recursion.py}
+
+\subsection{IO}
+\sourcecode{python/io.py}
+\egroup
diff --git a/content/python/recursion.py b/content/python/recursion.py
new file mode 100644
index 0000000..45e0147
--- /dev/null
+++ b/content/python/recursion.py
@@ -0,0 +1,2 @@
+import sys
+sys.setrecursionlimit(1000_007)