AcWing 670. 动物
原题链接
简单
作者:
SayYong
,
2024-09-28 08:54:36
,
所有人可见
,
阅读 1
#include <iostream>
#include <string>
using namespace std;
int main(void)
{
string str1, str2, str3;
cin >> str1 >> str2 >> str3;
if (str1 == "vertebrado") {
if (str2 == "ave") {
if (str3 == "carnivoro") {
cout << "aguia" << endl;
} else {
cout << "pomba" << endl;
}
} else {
if (str3 == "onivoro") {
cout << "homem" << endl;
} else {
cout << "vaca" << endl;
}
}
} else {
if (str2 == "inseto") {
if (str3 == "hematofago") {
cout << "pulga" << endl;
} else {
cout << "lagarta" << endl;
}
} else {
if (str3 == "hematofago") {
cout << "sanguessuga" << endl;
} else {
cout << "minhoca" << endl;
}
}
}
return 0;
}