fork(3) download
  1. def f(n):r=10**len(`n`)/9;print-n/r*-r-n
  2.  
  3. for n in 8, 100, 113, 87654321, 42, 20000, 11132:
  4. f(n)
Success #stdin #stdout 0.01s 9024KB
stdin
Standard input is empty
stdout
0
11
109
1234567
2
2222
11090