You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
314 B
14 lines
314 B
f = open('input.txt', 'r') |
|
input = f.readlines() |
|
pre = 999999999999999999999999999999999999999999999 |
|
count = 0 |
|
for i in range(len(input)): |
|
input[i] = input[i].strip() |
|
input[i] = int(input[i]) |
|
print(len(input)) |
|
print(input) |
|
for x in input: |
|
if pre < x: |
|
count = count + 1 |
|
pre = x |
|
print(count)
|
|
|