SHARE
TWEET

My test

a guest Aug 21st, 2018 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. >>> def test(b:int) -> int:
  2. ...     return (b +16383) // 16384
  3. ...
  4. >>> def quest(b:int) -> int:
  5. ...     return -(-b//16384)
  6. ...
  7. >>> for i in range(16384*10):
  8. ...     if test(i) != quest(i):
  9. ...             print("i=", i, " test(i)=", test(i), " quest(i)=", quest(i), sep='')
  10. ...             break
  11. ...
  12. >>>
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
 
Top