Răspuns :
COROANA TE ROG!!!
#include<iostream>
using namespace std;
int main(){
int a, b, x, y;
cin>>a>>b;
x=a;
y=b;
while(x!=y)
if(x>y)
x=x-y;
else
y=y-x;
if(x==1){
int s=0;
do{
s+=a%10;
a/=10;
}while(a!=0);
do{
s+=b%10;
b/=10;
}while(b!=0);
cout<<s;
}
else{
int max=(a>b)?a:b, k=0;
for(int d=2;d<=max/2;d++)
if(max%d==0&&d%2==0)
k++;
cout<<k;
}
return 0;
}