Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
3833
Dari_
Feb 19th, 2019
199
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.15 KB
| None
|
0
0
raw
download
clone
embed
print
report
nums
=
list
(
map
(
int
,
input
(
)
.
split
(
)
)
)
res
=
0
for
i
in
range
(
1
,
len
(
nums
)
-
1
)
:
if
nums
[
i-
1
]
<
nums
[
i
]
>
nums
[
i+
1
]
:
res +
=
1
print
(
res
)
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
C++ | 20 min ago | 1.61 KB
Untitled
C++ | 33 min ago | 1.18 KB
Untitled
C++ | 46 min ago | 1.10 KB
Untitled
C++ | 1 hour ago | 3.12 KB
PZ-B41-ModsAutomaticInstaller
PowerShell | 2 hours ago | 6.64 KB
JAVA Q
Java | 2 hours ago | 1.08 KB
TEST E22
Lua | 2 hours ago | 1.13 KB
2D StickPool Game C++ D2D VectorGFX (O3 AI...
C++ | 2 hours ago | 213.36 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!