hiho week 143 register

Ended

Participants:1650

Verdict:Accepted
Score:100 / 100
Submitted:2017-03-27 21:00:30

Lang:Python2

Edit
1
2
3
4
5
6
7
8
9
input()
data = raw_input().split(' ')
l = len(data) - 1
while l > 0 and int(data[l]) > int(data[l - 1]):
    del data[l]
    l -= 1
if l>0 : del data[l]
print ' '.join(data)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX