a[];Z;p=4;main(r,q){for(;~q;q=10+p)p-=r^=~scanf("%d",a+Z++)||printf("%d%c",(3*q*(p*a[5-r]-q*a[3-r])-p*p*a[7-r])*p/1000,r?32:10);}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page