LearnPy Hub
← Arena
EasyRating 800

Warmer Than Yesterday

Count the days that were warmer than the day before.

Input

n, then n temperatures.

Output

One integer.

Sample 1

Input
6
20 22 21 25 25 30
Output
3

Sample 2

Input
1
30
Output
0
solution.py
Output appears here
Warmer Than Yesterday · Python Arena problem · LearnPy Hub