A Next Round
- class Solution:
- def Next_Round(self, k, arr):
- kth_place = arr[k-1]
- count_next_round = 0
- for i in range(len(arr)):
- if arr[i] > 0:
- if arr[i] >= kth_place:
- count_next_round += 1
- print(count_next_round)
- if __name__ == '__main__':
- op = Solution()
- n_size, k = map(int, input().split())
- arr = list(map(int, input().split()))
- op.Next_Round(k, arr)
0 Comments