输入A、B、C3个人的生日,格式为: 年 月 日

输入A、B、C3个人的生日,格式为:年 月 日,按照年龄从大到小输出。

#include
#include
using namespace std;
int main()
{
int a,b,c,d,e,f,g,h,t;
int x,y,z;
cin>>a>>b>>c;
cin>>d>>e>>f;
cin>>g>>h>>t;
x=c+b100+a10000;
y=f+e100+d10000;
z=t+h100+g10000;
if(x>y&&x>z)
{
if(y>z)
cout<<"CBA"<<endl;
else
cout<<"BCA"<<endl;
}
if(y>x&&y>z)
{
if(x>z)
cout<<"CAB"<<endl;
else
cout<<"ACB"<<endl;
}
if(z>y&&z>x)
{
if(y>x)
cout<<"ABC"<<endl;
else
cout<<"BAC"<<endl;
}
return 0;
}