Skip to content

Commit 7911ae0

Browse files
Add files via upload
1 parent 142c589 commit 7911ae0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

32. JOHNY.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
t = int(input())
2+
for i in range (0,t):
3+
N = int(input())
4+
A = list(map(int, input().split()))
5+
k = int(input())
6+
result = A[k-1]
7+
A = sorted(A)
8+
for i in range(0, len(A)):
9+
if A[i] == result:
10+
print(i+1)
11+
12+

0 commit comments

Comments
 (0)