Friday, August 19, 2016

SOLUTION OF UVA 12468


//  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;
}