LASTDIGIT2 fixed and remixed by murky-satyr

while(0<1){val x=readLine split" ";println(Math.pow(x(0).last-48,x(1).toLong%4+4)%10 toInt)}

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

download

return to the top page