20 lines
230 B
C++
20 lines
230 B
C++
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
int main()
|
|
{
|
|
int i1, i2, count=0;
|
|
|
|
cin >> i1;
|
|
|
|
while(cin >> i2)
|
|
{
|
|
if (i2 > i1) count++;
|
|
i1 = i2;
|
|
}
|
|
|
|
cout << count << endl;
|
|
|
|
return 0;
|
|
} |