Guest User

Untitled

a guest
Jul 19th, 2017
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. you can add two digits without carry with int('01234567890123456789'[i:][j:][0])
  2. of course, you'll need appropriate substitute expressions for '01234567890123456789' and 0
  3. this can be generalized to add with carry
  4.  
  5. 0: ord(min(`[]`))-ord(min(`[]`))
  6. -1: ~(ord(min(`[]`))-ord(min(`[]`)))
  7.  
  8. 1: int(`~(ord(min(`[]`))-ord(min(`[]`)))`[~(ord(min(`[]`))-ord(min(`[]`)))])
  9.  
  10. 2: int(min(`ord(min(`(`()`.find)`))`))
  11.  
  12. 3: int(`ord(min(`(`()`.find)`))`[ord(min(`[]`))-ord(min(`[]`))])
  13.  
  14. 4: int(`ord(`ord(min(`[]`))-ord(min(`[]`))`)`[ord(min(`[]`))-ord(min(`[]`))])
  15.  
  16. 5: int(`int(oct(ord(min(`()`))))`[ord(min(`[]`))-ord(min(`[]`))])
  17.  
  18. 32: ord(min(`(`()`.find)`))
  19.  
  20. 40: ord(min(`()`))
  21.  
  22. 50: int(oct(ord(min(`()`))))
  23.  
  24. 48: ord(`ord(min(`[]`))-ord(min(`[]`))`)
Advertisement
Add Comment
Please, Sign In to add comment