diff --git a/src/bidendalausbid.py b/src/bidendalausbid.py new file mode 100644 index 0000000..bef33be --- /dev/null +++ b/src/bidendalausbid.py @@ -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) diff --git a/src/maetingarlisti.py b/src/maetingarlisti.py new file mode 100644 index 0000000..7966b55 --- /dev/null +++ b/src/maetingarlisti.py @@ -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") diff --git a/src/skak.py b/src/skak.py new file mode 100644 index 0000000..9f564f2 --- /dev/null +++ b/src/skak.py @@ -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)