Derivative by murky-satyr

for(;$=readline(e='');print(e||0))for(;[,c,,p]=/(.*?)x(\^(-?[\d.]+))?/g($)||[],+c?c:c+=1;e+=r[0]*!!e?'+'+r:r)r=p?/-?(?=1$)|.*/(p*5*c/5)+(p-2?'x^'+--p:'x'):c

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

download

return to the top page