PGhosh

Problem Question

Apr 11th, 2014
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. Time Limit:1 second(s)
  2. Memory Limit:32 MB
  3.  
  4. Problem
  5.  
  6. In this problem you have add two numbers and subs track two number , if the results are positive integers then you have to print “YES” otherwise “NO” .
  7.  
  8. Input
  9.  
  10. Input file starts with the test case T (1 >= T <= 100) . Each T lines follows two integers A , B (1 >= A,B <= 105)
  11.  
  12. Output
  13.  
  14. For every test case if the results are positive integers then print “YES” otherwise “NO” .
  15.  
  16.  
  17.  
  18. Sample Input Output
  19.  
  20. Input
  21.  
  22. 2
  23.  
  24. 2 3
  25.  
  26. 6 4
  27.  
  28. Output
  29.  
  30. NO
  31.  
  32. YES
Advertisement
Add Comment
Please, Sign In to add comment