Sign of permutations by nu (tails)

main(b,d){for(;~scanf("%d",&d);getchar()&2?puts("-1"+b%2),b=1:1)b^=b>>d&1^(1<<d)-2;}

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