multiply SI units by rotary-o

while(0<1)println{val a=readLine split' '
"m kg s A K mol cd"split' 'map{s=>val i=a.count(_==s)+a.count(_==s+2)*2
Seq(s+i,s,0)(2>>i)}filter(_!=0)mkString" "}

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

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)


return to the top page