SOLUTION OF UVA 12468 UVA SOLUTIONS // Question of uva 12468 - Zapping // Mahmud_Jamil #include<stdio.h> int main() { int a,b,s; while(scanf("%d %d",&a,&b)==2 && (a!=-1 && b!=-1)) { s=abs(a-b); if(s>50) s=100-s; printf("%d\n",s); } return 0; } Share This: Facebook Twitter Google+ Stumble Digg Email ThisBlogThis!Share to XShare to Facebook