SHARE
TWEET

Untitled

a guest Jul 17th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top