PTR by murky-satyr

System.in.eachLine{n=9-it.count(c=':')
println"${(n<9?[*it.replace(c+c,c*n+0).split(c)].sum{"0000$it"[-4..-1]}as List:it.tokenize('.'))[-1..0].join'.'}.i${n<9?'p6':'n-addr'}.arpa"}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page