t161.py 402 B

12345678910111213
  1. # to avoid constant-izing in python compiler
  2. def doadd(a,b):
  3. return a+b
  4. def dosub(a,b):
  5. return a-b
  6. print doadd(123, 12345678987654321)
  7. print doadd(-123, 12345678987654321)
  8. print doadd(-123, -12345678987654321)
  9. print doadd(123, -12345678987654321)
  10. print dosub(123, 12345678987654321)
  11. print dosub(12345678987654321, 123)
  12. print dosub(-12345678987654321, 123)
  13. print dosub(-12345678987654321, -123)