A=B=[] System.in.eachLine{!it?B=[]:B<<it.split()*.toLong()} A.any{a->B.any{b->println a.sum{n->b.sum{sprintf'%5d',n*it}}}}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page