Advertisement
Guest User

Untitled

a guest
Mar 20th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1.  
  2. # #//////////////////////////// PROBLEM STATEMENT //////////////////////////////
  3. # # Given three ints, a b c, print True if one of b or c is "close" //
  4. # # (differing from a by at most 1), while the other is "far", differing //
  5. # # from both other values by 2 or more. //
  6. # # //
  7. # # 1 2 10 -> True //
  8. # # 1 2 3 -> False //
  9. # # 4 1 3 -> True //
  10. # #/////////////////////////////////////////////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement