From 4274ead422fcb5bbd708cc53bbec2ddd359bc3b1 Mon Sep 17 00:00:00 2001 From: Zeheng Li Date: Mon, 19 Aug 2024 16:17:34 -0600 Subject: [PATCH] add examples --- src/dagatal.py | 8 ++++++++ src/hakkari.py | 9 +++++++++ src/hitastig.py | 3 +++ 3 files changed, 20 insertions(+) create mode 100644 src/dagatal.py create mode 100644 src/hakkari.py create mode 100644 src/hitastig.py diff --git a/src/dagatal.py b/src/dagatal.py new file mode 100644 index 0000000..9991dc5 --- /dev/null +++ b/src/dagatal.py @@ -0,0 +1,8 @@ +m = int(input()) +if m == 2: + d = 28 +elif m in [1, 3, 5, 7, 8, 10, 12]: + d = 31 +else: + d = 30 +print(d) diff --git a/src/hakkari.py b/src/hakkari.py new file mode 100644 index 0000000..fad656d --- /dev/null +++ b/src/hakkari.py @@ -0,0 +1,9 @@ +n, m = [int(d) for d in input().split()] +res = [] +for r in range(n): + row = input() + for c in range(m): + if row[c] == "*": + res.append((r + 1, c + 1)) +print(len(res)) +print("\n".join(f"{t[0]} {t[1]}" for t in res)) diff --git a/src/hitastig.py b/src/hitastig.py new file mode 100644 index 0000000..111e892 --- /dev/null +++ b/src/hitastig.py @@ -0,0 +1,3 @@ +_ = int(input()) +a = [int(d) for d in input().split()] +print(max(a), min(a))