Skip to content

Commit

Permalink
add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
zehengl committed Aug 19, 2024
1 parent e231cdf commit 4274ead
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/dagatal.py
Original file line number Diff line number Diff line change
@@ -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)
9 changes: 9 additions & 0 deletions src/hakkari.py
Original file line number Diff line number Diff line change
@@ -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))
3 changes: 3 additions & 0 deletions src/hitastig.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_ = int(input())
a = [int(d) for d in input().split()]
print(max(a), min(a))

0 comments on commit 4274ead

Please sign in to comment.