Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- you can add two digits without carry with int('01234567890123456789'[i:][j:][0])
- of course, you'll need appropriate substitute expressions for '01234567890123456789' and 0
- this can be generalized to add with carry
- 0: ord(min(`[]`))-ord(min(`[]`))
- -1: ~(ord(min(`[]`))-ord(min(`[]`)))
- 1: int(`~(ord(min(`[]`))-ord(min(`[]`)))`[~(ord(min(`[]`))-ord(min(`[]`)))])
- 2: int(min(`ord(min(`(`()`.find)`))`))
- 3: int(`ord(min(`(`()`.find)`))`[ord(min(`[]`))-ord(min(`[]`))])
- 4: int(`ord(`ord(min(`[]`))-ord(min(`[]`))`)`[ord(min(`[]`))-ord(min(`[]`))])
- 5: int(`int(oct(ord(min(`()`))))`[ord(min(`[]`))-ord(min(`[]`))])
- 32: ord(min(`(`()`.find)`))
- 40: ord(min(`()`))
- 50: int(oct(ord(min(`()`))))
- 48: ord(`ord(min(`[]`))-ord(min(`[]`))`)
Advertisement
Add Comment
Please, Sign In to add comment