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