summaryrefslogtreecommitdiff
path: root/content/python
diff options
context:
space:
mode:
authorGloria Mundi <gloria@gloria-mundi.eu>2024-11-16 01:24:14 +0100
committerGloria Mundi <gloria@gloria-mundi.eu>2024-11-16 01:24:14 +0100
commit98567ec798aa8ca2cfbcb85c774dd470f30e30d4 (patch)
tree5113d5cc24d1ad5f93810b6442ce584a36950dc8 /content/python
parentad3856a6b766087df0036de0b556f4700a6498c9 (diff)
parent8d11c6c8213f46f0fa19826917c255edd5d43cb1 (diff)
mzuenni tests
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)