提交时间:2024-08-14 18:50:44
运行 ID: 50216
#include<bits/stdc++.h> using namespace std; int main(){ int n,m; cin>>n>>m; if(m<10){ cout<<max(n,m)<<endl<<min(n,m)<<n*m; }else if(m>=10&&m<=99){ int a,b; a=m%10*n; b=m/10*n; cout<<max(n,m)<<endl<<min(n,m)<<endl<<a<<endl<<b<<endl<<a+b*10; }else if(m>=100&&m<=999){ int a,b,c; a=m%10*n; b=m%100/10*n; c=m/100*n; cout<<max(n,m)<<endl<<min(n,m)<<endl<<a<<endl<<b<<endl<<c<<endl<<a+b*10+c*100; } }