Placement season
n = int(input('number of student: '))
student = list(map(int, input().split()))
if __name__ == '__main__':
print(0, end=' ')
for i in range(1, n):
t = 0
for j in range(1, i):
if student[j] >= student[i]:
t += 1
print(t, end=' ')
Comments
Leave a comment