Timus Problem 1409 Solution

Timus Problem Solution

#include <stdio.h>

int main()

{

    int a,b,rest,test,i;

    i=10;

    scanf("%d %d",&a,&b);

    i=a+b-1;

    rest=i-a;

    test=i-b;

    printf("%d %d",rest,test);

    return 0;

}

 

0 Comments

You may find interest following article