//problem link>>http://acm.timus.ru/problem.aspx?space=1&num=1409
#include <iostream>
using namespace std ;
int main ()
{
int a ,b , i ,x ;
while (cin>>a>>b)
{
x=a+b ;
if (x>10)
{
x=x-10 ;
cout<<b-x<<" "<<a-x<<endl ;
}
else cout<<b-1<<" "<<a-1<<endl ;
}
return 0 ;
}
#include <iostream>
using namespace std ;
int main ()
{
int a ,b , i ,x ;
while (cin>>a>>b)
{
x=a+b ;
if (x>10)
{
x=x-10 ;
cout<<b-x<<" "<<a-x<<endl ;
}
else cout<<b-1<<" "<<a-1<<endl ;
}
return 0 ;
}
No comments:
Post a Comment