Easy problems solved on 2024-11-12
This commit is contained in:
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")
|
||||
Reference in New Issue
Block a user