Problem p02923 (python)

Fixed submission:
N=int(input())
H=list(map(int, input().split()))

can_move = 0
move = 0

for i in range(N):
    if i == N-1:
        break
    elif H[i] >= H[i+1]:
        move += 1
        if can_move <= move:
            can_move = move
    else:
        move = 0

print(can_move)

Buggy submission (verdict: Runtime Error):
Last login: Sat Oct 12 20:09:34 on ttys000
pyenv: no such command `virtualenv-init'
/Users/toshi% pwd
/Users/toshi
/Users/toshi% ll
total 0
drwx------@  3 toshi  staff    96  7  7 21:05 Applications
drwx------@  3 toshi  staff    96  5 18 17:25 Desktop
drwx------@  4 toshi  staff   128  5 21 23:20 Documents
drwx------+ 14 toshi  staff   448 10 27 20:13 Downloads
drwx------@ 64 toshi  staff  2048  7  7 21:04 Library
drwx------+  5 toshi  staff   160  5 26 13:49 Movies
drwx------+  4 toshi  staff   128  5 21 23:50 Music
drwx------+  4 toshi  staff   128 10 19 20:00 Pictures
drwxr-xr-x+  4 toshi  staff   128  5 18 17:16 Public
drwxr-xr-x   4 toshi  staff   128 10 20 16:56 docs
drwxr-xr-x   4 toshi  staff   128  5 20 01:41 prog
drwxr-xr-x   3 toshi  staff    96  7 13 16:33 python_env
drwxr-xr-x   3 toshi  staff    96  7  7 21:03 tools
/Users/toshi% cd down
cd: no such file or directory: down
/Users/toshi% cd Downloads/
/Users/toshi/Downloads% ll
total 4928
-rw-r--r--@ 1 toshi  staff   68299  6 22 21:30 SC3150965_36584855.pdf
-rw-r--r--@ 1 toshi  staff    2018  7 13 11:58 file.zip
-rwxr-xr-x@ 1 toshi  staff     540  5  4 09:51 pass.txt
-rw-r--r--@ 1 toshi  staff     475  7 13 16:29 pass.zip
-rw-------@ 1 toshi  staff  406016 10 27 20:11 電子領収書：JAL国際線予約1.pdf
-rw-------@ 1 toshi  staff  406015 10 27 20:12 電子領収書：JAL国際線予約2.pdf
-rw-------@ 1 toshi  staff  390069 10 27 20:12 電子領収書：JAL国際線予約3.pdf
-rw-------@ 1 toshi  staff  405997 10 27 20:12 電子領収書：JAL国際線予約4.pdf
-rw-------@ 1 toshi  staff  405997 10 27 20:12 電子領収書：JAL国際線予約5.pdf
-rw-------@ 1 toshi  staff  406236 10 27 20:13 電子領収書：JAL国際線予約6.pdf
/Users/toshi/Downloads% man zip
/Users/toshi/Downloads% zip JAL.zip *JAL*.pdf 
/Users/toshi/Downloads% ll *JAL*
-rw-------@ 1 toshi  staff  406016 10 27 20:11 電子領収書：JAL国際線予約1.pdf
-rw-------@ 1 toshi  staff  406015 10 27 20:12 電子領収書：JAL国際線予約2.pdf
-rw-------@ 1 toshi  staff  390069 10 27 20:12 電子領収書：JAL国際線予約3.pdf
-rw-------@ 1 toshi  staff  405997 10 27 20:12 電子領収書：JAL国際線予約4.pdf
-rw-------@ 1 toshi  staff  405997 10 27 20:12 電子領収書：JAL国際線予約5.pdf
-rw-------@ 1 toshi  staff  406236 10 27 20:13 電子領収書：JAL国際線予約6.pdf
/Users/toshi/Downloads% zip JAL.zip *JAL*
  adding: 電子領収書：JAL国際線予約1.pdf (deflated 21%)
  adding: 電子領収書：JAL国際線予約2.pdf (deflated 21%)
  adding: 電子領収書：JAL国際線予約3.pdf (deflated 20%)
  adding: 電子領収書：JAL国際線予約4.pdf (deflated 21%)
  adding: 電子領収書：JAL国際線予約5.pdf (deflated 21%)
  adding: 電子領収書：JAL国際線予約6.pdf (deflated 21%)
/Users/toshi/Downloads% ll
total 8672
-rw-r--r--  1 toshi  staff  1913632 10 27 20:22 JAL.zip
-rw-r--r--@ 1 toshi  staff    68299  6 22 21:30 SC3150965_36584855.pdf
-rw-r--r--@ 1 toshi  staff     2018  7 13 11:58 file.zip
-rwxr-xr-x@ 1 toshi  staff      540  5  4 09:51 pass.txt
-rw-r--r--@ 1 toshi  staff      475  7 13 16:29 pass.zip
-rw-------@ 1 toshi  staff   406016 10 27 20:11 電子領収書：JAL国際線予約1.pdf
-rw-------@ 1 toshi  staff   406015 10 27 20:12 電子領収書：JAL国際線予約2.pdf
-rw-------@ 1 toshi  staff   390069 10 27 20:12 電子領収書：JAL国際線予約3.pdf
-rw-------@ 1 toshi  staff   405997 10 27 20:12 電子領収書：JAL国際線予約4.pdf
-rw-------@ 1 toshi  staff   405997 10 27 20:12 電子領収書：JAL国際線予約5.pdf
-rw-------@ 1 toshi  staff   406236 10 27 20:13 電子領収書：JAL国際線予約6.pdf
/Users/toshi/Downloads% 
/Users/toshi/Downloads% 
/Users/toshi/Downloads% 
/Users/toshi/Downloads% 
/Users/toshi/Downloads% pwd
/Users/toshi/Downloads
/Users/toshi/Downloads% ls
JAL.zip
SC3150965_36584855.pdf
file.zip
pass.txt
pass.zip
電子領収書：JAL国際線予約1.pdf
電子領収書：JAL国際線予約2.pdf
電子領収書：JAL国際線予約3.pdf
電子領収書：JAL国際線予約4.pdf
電子領収書：JAL国際線予約5.pdf
電子領収書：JAL国際線予約6.pdf
/Users/toshi/Downloads% pip install -U pip
Collecting pip
  Downloading https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl (1.4MB)
    100% |████████████████████████████████| 1.4MB 848kB/s 
Installing collected packages: pip
  Found existing installation: pip 19.0.3
    Uninstalling pip-19.0.3:
      Successfully uninstalled pip-19.0.3
Successfully installed pip-19.3.1
/Users/toshi/Downloads% python3
Python 3.7.4 (default, Jul 12 2019, 20:24:06) 
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 
/Users/toshi/Downloads% pwd
/Users/toshi/Downloads
/Users/toshi/Downloads% ls
JAL.zip
SC3150965_36584855.pdf
file.zip
pass.txt
pass.zip
電子領収書：JAL国際線予約1.pdf
電子領収書：JAL国際線予約2.pdf
電子領収書：JAL国際線予約3.pdf
電子領収書：JAL国際線予約4.pdf
電子領収書：JAL国際線予約5.pdf
電子領収書：JAL国際線予約6.pdf
/Users/toshi/Downloads% ll 
total 8672
-rw-r--r--  1 toshi  staff  1913632 10 27 20:22 JAL.zip
-rw-r--r--@ 1 toshi  staff    68299  6 22 21:30 SC3150965_36584855.pdf
-rw-r--r--@ 1 toshi  staff     2018  7 13 11:58 file.zip
-rwxr-xr-x@ 1 toshi  staff      540  5  4  2019 pass.txt
-rw-r--r--@ 1 toshi  staff      475  7 13 16:29 pass.zip
-rw-------@ 1 toshi  staff   406016 10 27 20:11 電子領収書：JAL国際線予約1.pdf
-rw-------@ 1 toshi  staff   406015 10 27 20:12 電子領収書：JAL国際線予約2.pdf
-rw-------@ 1 toshi  staff   390069 10 27 20:12 電子領収書：JAL国際線予約3.pdf
-rw-------@ 1 toshi  staff   405997 10 27 20:12 電子領収書：JAL国際線予約4.pdf
-rw-------@ 1 toshi  staff   405997 10 27 20:12 電子領収書：JAL国際線予約5.pdf
-rw-------@ 1 toshi  staff   406236 10 27 20:13 電子領収書：JAL国際線予約6.pdf
/Users/toshi/Downloads% python 
Python 3.7.4 (default, Jul 12 2019, 20:24:06) 
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 
/Users/toshi/Downloads% python3
Python 3.7.4 (default, Jul 12 2019, 20:24:06) 
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> not false
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'false' is not defined
>>> not False
True
>>> 
/Users/toshi/Downloads% pwe
pwd is correct? [n,y,a,e]: y
/Users/toshi/Downloads
/Users/toshi/Downloads% cd
/Users/toshi% ll
total 0
drwx------@  3 toshi  staff    96  7  7 21:05 Applications
drwx------@  3 toshi  staff    96  5 18 17:25 Desktop
drwx------@  4 toshi  staff   128  5 21 23:20 Documents
drwx------+ 15 toshi  staff   480 11 15 00:20 Downloads
drwx------@ 64 toshi  staff  2048  7  7 21:04 Library
drwx------+  5 toshi  staff   160  5 26 13:49 Movies
drwx------+  4 toshi  staff   128  5 21 23:50 Music
drwx------+  4 toshi  staff   128 10 19 20:00 Pictures
drwxr-xr-x+  4 toshi  staff   128  5 18 17:16 Public
drwxr-xr-x   4 toshi  staff   128 10 20 16:56 docs
drwxr-xr-x   4 toshi  staff   128  5 20 01:41 prog
drwxr-xr-x   3 toshi  staff    96  7 13 16:33 python_env
drwxr-xr-x   3 toshi  staff    96  7  7 21:03 tools
/Users/toshi% cd python_env/
/Users/toshi/python_env% ll
total 0
drwxr-xr-x  6 toshi  staff  192  7 13 16:33 py3env
/Users/toshi/python_env% cd py3env/
/Users/toshi/python_env/py3env% ll
total 8
drwxr-xr-x  12 toshi  staff  384  7 13 16:33 bin
drwxr-xr-x   2 toshi  staff   64  7 13 16:33 include
drwxr-xr-x   3 toshi  staff   96  7 13 16:33 lib
-rw-r--r--   1 toshi  staff  100  7 13 16:33 pyvenv.cfg
/Users/toshi/python_env/py3env% cd ..
/Users/toshi/python_env% ll
total 0
drwxr-xr-x  6 toshi  staff  192  7 13 16:33 py3env
/Users/toshi/python_env% cd ..
/Users/toshi% ll
total 0
drwx------@  3 toshi  staff    96  7  7 21:05 Applications
drwx------@  3 toshi  staff    96  5 18 17:25 Desktop
drwx------@  4 toshi  staff   128  5 21 23:20 Documents
drwx------+ 15 toshi  staff   480 11 15 00:20 Downloads
drwx------@ 64 toshi  staff  2048  7  7 21:04 Library
drwx------+  5 toshi  staff   160  5 26 13:49 Movies
drwx------+  4 toshi  staff   128  5 21 23:50 Music
drwx------+  4 toshi  staff   128 10 19 20:00 Pictures
drwxr-xr-x+  4 toshi  staff   128  5 18 17:16 Public
drwxr-xr-x   4 toshi  staff   128 10 20 16:56 docs
drwxr-xr-x   4 toshi  staff   128  5 20 01:41 prog
drwxr-xr-x   3 toshi  staff    96  7 13 16:33 python_env
drwxr-xr-x   3 toshi  staff    96  7  7 21:03 tools
/Users/toshi% cd p
cd: no such file or directory: p
/Users/toshi% cd prog/
/Users/toshi/prog% ll
total 0
drwxr-xr-x  7 toshi  staff  224  9 24 23:40 python
drwxr-xr-x  8 toshi  staff  256  5 20 03:06 ruby
/Users/toshi/prog% cd python/
/Users/toshi/prog/python% ll
total 0
drwxr-xr-x  4 toshi  staff  128  9 24 22:44 atcorder
drwxr-xr-x  8 toshi  staff  256  8 12 11:40 automate
drwxr-xr-x  5 toshi  staff  160 10  5 15:07 clear
drwxr-xr-x  2 toshi  staff   64  7 29 22:41 introducting
drwxr-xr-x  2 toshi  staff   64  7 12 18:51 minnano
/Users/toshi/prog/python% cd atcorder/
/Users/toshi/prog/python/atcorder% ll
total 0
drwxr-xr-x  5 toshi  staff  160  8 28 01:56 ABC138
drwxr-xr-x  3 toshi  staff   96  9 24 23:39 ABC139
/Users/toshi/prog/python/atcorder% cd ABC139
/Users/toshi/prog/python/atcorder/ABC139% ll
total 8
-rw-r--r--  1 toshi  staff  95  9 24 23:38 A_tenki.py
/Users/toshi/prog/python/atcorder/ABC139% python A_tenki.py 
CSS
CSR
2
/Users/toshi/prog/python/atcorder/ABC139% python A_tenki.py
SSR
SSR
3
/Users/toshi/prog/python/atcorder/ABC139% python A_tenki.py
RRR
SSS
0
/Users/toshi/prog/python/atcorder/ABC139% ll ../ABC138
total 24
-rw-r--r--  1 toshi  staff  115  8 27 00:20 A_Red_or_Not.py
-rw-r--r--  1 toshi  staff  119  8 28 01:22 B_Resistors_in_Parallel.py
-rw-r--r--  1 toshi  staff  163  8 28 01:51 C_Alchemist.py
/Users/toshi/prog/python/atcorder/ABC139% ll
total 8
-rw-r--r--  1 toshi  staff  95  9 24 23:38 A_tenki.py
/Users/toshi/prog/python/atcorder/ABC139% emacs B_Power_Socket.py
/Users/toshi/prog/python/atcorder/ABC139% ll
total 16
-rw-r--r--  1 toshi  staff   95  9 24 23:38 A_tenki.py
-rw-r--r--  1 toshi  staff  114 11 15 01:02 B_Power_Socket.py
-rw-r--r--  1 toshi  staff    0 11 15 00:49 B_Power_Socket.py~
/Users/toshi/prog/python/atcorder/ABC139% emacs -nw B_Power_Socket.py
/Users/toshi/prog/python/atcorder/ABC139% emacs -nw B_Power_Socket_sample.py
/Users/toshi/prog/python/atcorder/ABC139% ll
total 32
-rw-r--r--  1 toshi  staff   95  9 24 23:38 A_tenki.py
-rw-r--r--  1 toshi  staff  114 11 15 01:05 B_Power_Socket.py
-rw-r--r--  1 toshi  staff  114 11 15 01:02 B_Power_Socket.py~
-rw-r--r--  1 toshi  staff  170 11 15 01:06 B_Power_Socket_sample.py
/Users/toshi/prog/python/atcorder/ABC139% rm *~
/Users/toshi/prog/python/atcorder/ABC139% ll
total 24
-rw-r--r--  1 toshi  staff   95  9 24 23:38 A_tenki.py
-rw-r--r--  1 toshi  staff  114 11 15 01:05 B_Power_Socket.py
-rw-r--r--  1 toshi  staff  170 11 15 01:06 B_Power_Socket_sample.py
/Users/toshi/prog/python/atcorder/ABC139% emacs -nw C_Lower.py

N=int(input())
H=list(map(int, input().split()))

can_move = 0
move = 0

for i in range(N):
    if i == N-1:
        break
    elif H[i] >= H[i+1]:
        move += 1
        if can_move <= move:
            can_move = move
    else:
        move = 0

print(can_move)