diff options
| author | mzuenni <michi.zuendorf@gmail.com> | 2024-07-01 23:12:27 +0200 |
|---|---|---|
| committer | mzuenni <michi.zuendorf@gmail.com> | 2024-07-01 23:12:27 +0200 |
| commit | 8c33b4e0d3030cfed17fc64b4fe41133339f6d87 (patch) | |
| tree | 01cee5af2193db5bd5c5bc2debe7c6492dd9ac00 /python | |
| parent | 545265f2f3992e15c45f1bbb99e04a27e1fc7856 (diff) | |
-java + python
Diffstat (limited to 'python')
| -rw-r--r-- | python/io.py | 3 | ||||
| -rw-r--r-- | python/python.tex | 10 | ||||
| -rw-r--r-- | python/recursion.py | 2 |
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) |
