# |
Author |
Problem |
Lang |
Verdict |
Time |
Memory |
Sent |
Judged |
|
20774751 |
Practice:
Sanjit |
450A
- 21
|
Python 3
|
Accepted
|
77 ms
|
36 KB
|
2016-09-20 15:00:36 |
2016-09-20 15:00:36 |
|
n,m=map(int,input().split())
a=[(int(i)-1)//m for i in input().split()]
a.reverse()
print(n-a.index(max(a)))
Click to see test details