Skip to content

Commit

Permalink
add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
zehengl committed Aug 20, 2024
1 parent 4274ead commit 348196d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/bidendalausbid.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
sh, sm = [int(d) for d in input().split(":")]
eh, em = [int(d) for d in input().split(":")]
dh, dm = 0, 0
dh = eh - sh
if dh < 0:
dh += 24
dm = em - sm
if dm < 0:
dm += 60
dh -= 1
if dh < 0:
dh += 24
print(60 * dh + dm)
8 changes: 8 additions & 0 deletions src/maetingarlisti.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
n, r, c = [int(d) for d in input().split()]
a = [input().split() for _ in range(r)]
for i in range(r):
b = [input() for _ in range(c)]
if a[i] == b:
print("left")
else:
print("right")
6 changes: 6 additions & 0 deletions src/skak.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
xh, yh = [int(d) for d in input().split()]
xp, yp = [int(d) for d in input().split()]
if xh == xp or yh == yp:
print(1)
else:
print(2)

0 comments on commit 348196d

Please sign in to comment.