def main():
arr = [9,8,7,6,5,4,3,2,-11]
print(arr)
n = len(arr)
i = 1
while i < n and arr[i] == arr[0]:
i +=1
if i < n:
if arr[i - 1] < arr[ i ]:
flag = True
for j in range(i , n - 1):
if arr[j] > arr[j+1]:
flag = False
if flag is True:
print("Vector crescator!")
else:
print("Vector neordonat!")
elif arr[i - 1] > arr[ i ]:
flag = True
for j in range(i, n - 1):
if arr[j] < arr[j+1]:
flag = False
if flag is True:
print("Vector descrescator!")
else:
print("Vector neordonat!")
else:
print("Constant Vector!")
main()
ZGVmIG1haW4oKToKICAgIGFyciA9IFs5LDgsNyw2LDUsNCwzLDIsLTExXQogICAgcHJpbnQoYXJyKQogICAgbiA9IGxlbihhcnIpCiAgICBpID0gMQogICAgd2hpbGUgaSA8IG4gYW5kIGFycltpXSA9PSBhcnJbMF06CiAgICAgICAgaSArPTEKICAgIGlmIGkgPCBuOgogICAgICBpZiBhcnJbaSAtIDFdIDwgYXJyWyBpIF06CiAgICAgICAgICAgIGZsYWcgPSBUcnVlCiAgICAgICAgICAgIGZvciBqIGluIHJhbmdlKGkgLCBuIC0gMSk6CiAgICAgICAgICAgICAgICBpZiBhcnJbal0gPiBhcnJbaisxXToKICAgICAgICAgICAgICAgICAgICBmbGFnID0gRmFsc2UKICAgICAgICAgICAgaWYgZmxhZyBpcyBUcnVlOgogICAgICAgICAgICAgICBwcmludCgiVmVjdG9yIGNyZXNjYXRvciEiKQogICAgICAgICAgICBlbHNlOgogICAgICAgICAgICAgICBwcmludCgiVmVjdG9yIG5lb3Jkb25hdCEiKQoKICAgICAgZWxpZiBhcnJbaSAtIDFdID4gYXJyWyBpIF06CiAgICAgICAgICAgIGZsYWcgPSBUcnVlCiAgICAgICAgICAgIGZvciBqIGluIHJhbmdlKGksIG4gLSAxKToKICAgICAgICAgICAgICAgIGlmIGFycltqXSA8IGFycltqKzFdOgogICAgICAgICAgICAgICAgICAgIGZsYWcgPSBGYWxzZQogICAgICAgICAgICBpZiBmbGFnIGlzIFRydWU6CiAgICAgICAgICAgICAgICBwcmludCgiVmVjdG9yIGRlc2NyZXNjYXRvciEiKQogICAgICAgICAgICBlbHNlOgogICAgICAgICAgICAgICAgcHJpbnQoIlZlY3RvciBuZW9yZG9uYXQhIikKICAgIGVsc2U6CiAgICAgICAgcHJpbnQoIkNvbnN0YW50IFZlY3RvciEiKQoKbWFpbigp
[9, 8, 7, 6, 5, 4, 3, 2, -11]
Vector descrescator!