From 8c33b4e0d3030cfed17fc64b4fe41133339f6d87 Mon Sep 17 00:00:00 2001 From: mzuenni Date: Mon, 1 Jul 2024 23:12:27 +0200 Subject: -java + python --- python/io.py | 3 +++ python/python.tex | 10 ++++++++++ python/recursion.py | 2 ++ 3 files changed, 15 insertions(+) create mode 100644 python/io.py create mode 100644 python/python.tex create mode 100644 python/recursion.py (limited to 'python') 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) -- cgit v1.2.3