Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Codeforces Round 467A
- #include <iostream>
- using namespace std;
- int main()
- {
- int n, p, q, answ=0;
- cin >> n;
- for(int i=0;i<n;i++)
- {
- cin >> p >> q;
- if((q-p)>=2){answ++;}
- }
- cout << answ;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment