Advertisement
PGhosh

11 April LightOJ

Apr 11th, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int T,A,B,sum;
  6.     scanf("%d", &T);
  7.     while(T>0){
  8.         T--;
  9.         scanf("%d %d", &A, &B);
  10.         sum=A-B;
  11.         if(sum>-1){
  12.             printf("YES");
  13.         }
  14.         else{
  15.             printf("NO");
  16.         }
  17.  
  18.     }
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement