LASTDIGIT2 fixed and remixed by inaniwa

main(g,o){for(;gets(o);puts(&g))g=pow(atoi(index(o,32)-1),~-atoi(index(o,0)-3)%4+1),g=g%10+48;}

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

download

return to the top page