from itertools import*;r=raw_input;r()\x0d while 1:print max(int(i)-int(i[::-1])for i in map(''.join,permutations(r().split())))
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page