Easy problems solved on 2024-11-12

This commit is contained in:
2024-11-12 22:53:08 +01:00
parent 799f2283c7
commit 020015474f
21 changed files with 93 additions and 0 deletions

9
barcelona.py Normal file
View 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")