|
|
本帖最后由 陈泓竹 于 2025-7-24 15:03 编辑
#include<iostream>
using namespace std;
int main(){
int n,m,a,b,c,d;
cin>>n>>m ;
a = n % 10;
b = n/10 % 10;
c = m % 10;
d = m/10 % 10;
if(a==c&&b==d){
cout<<100<<endl;
}else if(a==c||a==d||b==c||b==d){
cout<<10<<endl;
}else{
cout<<0<<endl;
}
return 0;
}
|
|