Compare commits
1 Commits
799f2283c7
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 020015474f |
4
aleidibio.py
Normal file
4
aleidibio.py
Normal file
@@ -0,0 +1,4 @@
|
||||
a = int(input())
|
||||
b = int(input())
|
||||
c = int(input())
|
||||
print(c - a - b)
|
||||
3
astackofgold.py
Normal file
3
astackofgold.py
Normal file
@@ -0,0 +1,3 @@
|
||||
w, s = map(int, input().split())
|
||||
c = s * (s + 1) / 2
|
||||
print(int((w - (c * 29260)) / 110))
|
||||
9
barcelona.py
Normal file
9
barcelona.py
Normal file
@@ -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")
|
||||
1
bergmal.py
Normal file
1
bergmal.py
Normal file
@@ -0,0 +1 @@
|
||||
print(input())
|
||||
11
dfyrirdreki.py
Normal file
11
dfyrirdreki.py
Normal file
@@ -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)
|
||||
1
dragafra.py
Normal file
1
dragafra.py
Normal file
@@ -0,0 +1 @@
|
||||
print(int(input()) - int(input()))
|
||||
14
fallingsnow2.py
Normal file
14
fallingsnow2.py
Normal file
@@ -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()
|
||||
1
flatbokuveisla.py
Normal file
1
flatbokuveisla.py
Normal file
@@ -0,0 +1 @@
|
||||
print(int(input()) % int(input()))
|
||||
1
hipphipp.py
Normal file
1
hipphipp.py
Normal file
@@ -0,0 +1 @@
|
||||
print("Hipp hipp hurra!\n" * 20)
|
||||
3
hipphipphurra.py
Normal file
3
hipphipphurra.py
Normal file
@@ -0,0 +1,3 @@
|
||||
name = input()
|
||||
age = int(input())
|
||||
print(f"Hipp hipp hurra, {name}!\n" * age)
|
||||
10
hiptobesquare.py
Normal file
10
hiptobesquare.py
Normal file
@@ -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)
|
||||
1
lubbilaerir.py
Normal file
1
lubbilaerir.py
Normal file
@@ -0,0 +1 @@
|
||||
print(input()[0])
|
||||
5
mergjadmal.py
Normal file
5
mergjadmal.py
Normal file
@@ -0,0 +1,5 @@
|
||||
s = input()
|
||||
if "69" in s or "420" in s:
|
||||
print("Mergjad!")
|
||||
else:
|
||||
print("Leim!")
|
||||
3
reduplikation.py
Normal file
3
reduplikation.py
Normal file
@@ -0,0 +1,3 @@
|
||||
s = input()
|
||||
r = int(input())
|
||||
print(s * r)
|
||||
3
skak.py
Normal file
3
skak.py
Normal file
@@ -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)
|
||||
1
storafmaeli.py
Normal file
1
storafmaeli.py
Normal file
@@ -0,0 +1 @@
|
||||
print("Jebb" if int(input()) % 10 == 0 else "Neibb")
|
||||
8
takkar.py
Normal file
8
takkar.py
Normal file
@@ -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!")
|
||||
1
tilhamingju.py
Normal file
1
tilhamingju.py
Normal file
@@ -0,0 +1 @@
|
||||
print("TIL HAMINGJU MED AFMAELID FORRITUNARKEPPNI FRAMHALDSSKOLANNA!")
|
||||
1
tolvunarfraedingartelja.py
Normal file
1
tolvunarfraedingartelja.py
Normal file
@@ -0,0 +1 @@
|
||||
print(int(input()) - 1)
|
||||
11
whichnumberkindisit2.py
Normal file
11
whichnumberkindisit2.py
Normal file
@@ -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)
|
||||
Reference in New Issue
Block a user