fork download
  1. # -*- coding: utf-8 -*-
  2.  
  3. from fn import _
  4. n = [0, 3, 5, 6]
  5. a = n + map(15 - _, n[::-1])
  6. b = list(set(range(16)) - set(a))
  7. print a, b
  8. for p in [0, 1, 2, 3]:
  9. ai = sum(map(_**p, a))
  10. bi = sum(map(_**p, b))
  11. print ("{0:>5}"*2).format(ai,bi)
Runtime error #stdin #stdout 0.08s 8880KB
stdin
Standard input is empty
stdout
Standard output is empty