diff options
| author | Gloria Mundi <gloria@gloria-mundi.eu> | 2024-11-05 21:51:20 +0100 |
|---|---|---|
| committer | Gloria Mundi <gloria@gloria-mundi.eu> | 2024-11-05 21:51:20 +0100 |
| commit | ad3856a6b766087df0036de0b556f4700a6498c9 (patch) | |
| tree | 78037d83b823feee3f73d6594d6039442d7ca525 /python | |
| parent | cfb19a7085895cdbcf09c123c37735586dbe7695 (diff) | |
| parent | 8c33b4e0d3030cfed17fc64b4fe41133339f6d87 (diff) | |
merge mzuenni changes
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) |
