#include<iostream>
using namespace std;
void input(int*p)
{
cin >> *p;
for (int i = 1; i < 7; i++)
{
cin >> p[i];
}
}
void fengxi(int*p)
{
int free = 0;
for (int i = 1; i < 7; i += 2)
{
if (*(p + i) <= (*(p + i + 1))-2)
free++;
}
cout << free;
}
int main()
{
int *p = new int[7];
input(p);
fengxi(p);
}
网友评论