diff --git a/src/akureyri.py b/src/akureyri.py new file mode 100644 index 0000000..bed8ddf --- /dev/null +++ b/src/akureyri.py @@ -0,0 +1,10 @@ +from collections import Counter + +n = int(input()) +c = Counter() +for i in range(2 * n): + name = input() + if i % 2: + c[name] += 1 +for k, v in c.items(): + print(k, v) diff --git a/src/frumtolur.py b/src/frumtolur.py new file mode 100644 index 0000000..3a2f427 --- /dev/null +++ b/src/frumtolur.py @@ -0,0 +1,13 @@ +def is_prime(n): + for i in range(2, n): + if (n % i) == 0: + return False + return True + + +c, i = 0, 2 +while c < 100: + if is_prime(i): + print(i) + c += 1 + i += 1 diff --git a/src/lettasta.py b/src/lettasta.py new file mode 100644 index 0000000..f4ee255 --- /dev/null +++ b/src/lettasta.py @@ -0,0 +1,12 @@ +from collections import Counter + +n = int(input()) +m = int(input()) +g = dict(zip(range(n), input().split())) + +c = Counter() +for _ in range(m): + v = [int(d) for d in input().split()] + for i in range(n): + c[g[i]] += v[i] +print(max(c, key=lambda v: c[v])) diff --git a/src/lidaskipting.py b/src/lidaskipting.py new file mode 100644 index 0000000..7fd7107 --- /dev/null +++ b/src/lidaskipting.py @@ -0,0 +1 @@ +print("Neibb" if int(input()) % 3 else "Jebb")