diff --git a/aleidibio.py b/aleidibio.py new file mode 100644 index 0000000..6ffdf36 --- /dev/null +++ b/aleidibio.py @@ -0,0 +1,4 @@ +a = int(input()) +b = int(input()) +c = int(input()) +print(c - a - b) diff --git a/astackofgold.py b/astackofgold.py new file mode 100644 index 0000000..e2a9a1d --- /dev/null +++ b/astackofgold.py @@ -0,0 +1,3 @@ +w, s = map(int, input().split()) +c = s * (s + 1) / 2 +print(int((w - (c * 29260)) / 110)) diff --git a/barcelona.py b/barcelona.py new file mode 100644 index 0000000..922e189 --- /dev/null +++ b/barcelona.py @@ -0,0 +1,9 @@ +n, k = map(int, input().split()) +pos = list(map(int, input().split())) + +if pos[0] == k: + print("fyrst") +elif pos[1] == k: + print("naestfyrst") +else: + print(f"{pos.index(k)+1} fyrst") diff --git a/bergmal.py b/bergmal.py new file mode 100644 index 0000000..8475614 --- /dev/null +++ b/bergmal.py @@ -0,0 +1 @@ +print(input()) diff --git a/dfyrirdreki.py b/dfyrirdreki.py new file mode 100644 index 0000000..3281195 --- /dev/null +++ b/dfyrirdreki.py @@ -0,0 +1,11 @@ +a = int(input()) +b = int(input()) +c = int(input()) + +d = b**2 - 4 * a * c +if d > 0: + print(2) +elif d < 0: + print(0) +else: + print(1) diff --git a/dragafra.py b/dragafra.py new file mode 100644 index 0000000..91ba350 --- /dev/null +++ b/dragafra.py @@ -0,0 +1 @@ +print(int(input()) - int(input())) diff --git a/fallingsnow2.py b/fallingsnow2.py new file mode 100644 index 0000000..6c545b4 --- /dev/null +++ b/fallingsnow2.py @@ -0,0 +1,14 @@ +n, m = map(int, input().split()) + +snows = [ + 0, +] * m + +for _ in range(n): + for i, x in enumerate(input()): + snows[i] += 1 if x == "S" else 0 + +for r in range(n): + for c in range(m): + print("S" if snows[c] >= n - r else ".", end="") + print() diff --git a/flatbokuveisla.py b/flatbokuveisla.py new file mode 100644 index 0000000..86f05f0 --- /dev/null +++ b/flatbokuveisla.py @@ -0,0 +1 @@ +print(int(input()) % int(input())) diff --git a/hipphipp.py b/hipphipp.py new file mode 100644 index 0000000..5c0c912 --- /dev/null +++ b/hipphipp.py @@ -0,0 +1 @@ +print("Hipp hipp hurra!\n" * 20) diff --git a/hipphipphurra.py b/hipphipphurra.py new file mode 100644 index 0000000..a8f173b --- /dev/null +++ b/hipphipphurra.py @@ -0,0 +1,3 @@ +name = input() +age = int(input()) +print(f"Hipp hipp hurra, {name}!\n" * age) diff --git a/hiptobesquare.py b/hiptobesquare.py new file mode 100644 index 0000000..6fdcebe --- /dev/null +++ b/hiptobesquare.py @@ -0,0 +1,10 @@ +t = int(input()) + +for _ in range(t): + n = int(input()) + 1 + max_size = int(n**0.5) + if max_size % 2 == 0: + max_size -= 2 + else: + max_size -= 1 + print(max_size // 2) diff --git a/kvedja.py b/kvedja.py new file mode 100644 index 0000000..48371a9 --- /dev/null +++ b/kvedja.py @@ -0,0 +1 @@ +print(f"Kvedja,\n{input()}") diff --git a/lubbilaerir.py b/lubbilaerir.py new file mode 100644 index 0000000..8760729 --- /dev/null +++ b/lubbilaerir.py @@ -0,0 +1 @@ +print(input()[0]) diff --git a/mergjadmal.py b/mergjadmal.py new file mode 100644 index 0000000..f9846ce --- /dev/null +++ b/mergjadmal.py @@ -0,0 +1,5 @@ +s = input() +if "69" in s or "420" in s: + print("Mergjad!") +else: + print("Leim!") diff --git a/reduplikation.py b/reduplikation.py new file mode 100644 index 0000000..c11e717 --- /dev/null +++ b/reduplikation.py @@ -0,0 +1,3 @@ +s = input() +r = int(input()) +print(s * r) diff --git a/skak.py b/skak.py new file mode 100644 index 0000000..91506c3 --- /dev/null +++ b/skak.py @@ -0,0 +1,3 @@ +x1, y1 = map(int, input().split()) +x2, y2 = map(int, input().split()) +print(1 if x1 == x2 or y1 == y2 else 2) diff --git a/storafmaeli.py b/storafmaeli.py new file mode 100644 index 0000000..7e19153 --- /dev/null +++ b/storafmaeli.py @@ -0,0 +1 @@ +print("Jebb" if int(input()) % 10 == 0 else "Neibb") diff --git a/takkar.py b/takkar.py new file mode 100644 index 0000000..7c5bfa8 --- /dev/null +++ b/takkar.py @@ -0,0 +1,8 @@ +a = int(input()) +b = int(input()) +if a > b: + print("MAGA!") +elif b > a: + print("FAKE NEWS!") +else: + print("WORLD WAR 3!") diff --git a/tilhamingju.py b/tilhamingju.py new file mode 100644 index 0000000..5a6a5a9 --- /dev/null +++ b/tilhamingju.py @@ -0,0 +1 @@ +print("TIL HAMINGJU MED AFMAELID FORRITUNARKEPPNI FRAMHALDSSKOLANNA!") diff --git a/tolvunarfraedingartelja.py b/tolvunarfraedingartelja.py new file mode 100644 index 0000000..1bb2ffb --- /dev/null +++ b/tolvunarfraedingartelja.py @@ -0,0 +1 @@ +print(int(input()) - 1) diff --git a/whichnumberkindisit2.py b/whichnumberkindisit2.py new file mode 100644 index 0000000..d10d021 --- /dev/null +++ b/whichnumberkindisit2.py @@ -0,0 +1,11 @@ +t = int(input()) +for _ in range(t): + n = int(input()) + out = "" + if n % 2 == 1: + out = "O" + if (n**0.5) % 1 == 0: + out += "S" + if out == "": + out = "EMPTY" + print(out)