*p,*q;main(a,b){for(p=q=b;a;a=*p?a+=*p++>*q:printf("%d\n",a,p=b)<*++q)scanf("%d",p);}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page