hiho week 143 register

Ended

Participants:1650

Verdict:Accepted
Score:100 / 100
Submitted:2017-04-01 03:45:23

Lang:Python2

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
n = int(raw_input())
a = map(intraw_input().split())
i = 1
for i in range(n - 10-1):
    if a[i - 1] > a[i]:
        break
if i == 1:
    print a[0]
else:
    for j in range(i):
        print a[j],
    print
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX