Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. '''problem statement
  2. 0,0,2,1,4,2,6,3,8,4,10,5,12,6,14,7,16,8.........
  3. testcase1
  4. input:11
  5. output:10
  6. testcase2
  7. input:28
  8. output:13'''
  9. ................................
  10. n=int(input())
  11. if n%2==0:
  12. return n-1
  13. else:
  14. return (n//2)-1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement