Sign of permutations by chocobi

a[99],b,n;main(v){for(;~scanf("%d%c",++n+a,a);a[0]++%4&&(puts("-1"+!b),n=b=0))for(v=0;v++<n;)b^=a[v]>a[n];}

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

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page