AcWing 670. 动物
原题链接
简单
作者:
NeonSean
,
2020-08-11 15:34:46
,
所有人可见
,
阅读 444
#include <iostream>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if (a == "vertebrado") {
if (b == "ave") {
if (c == "carnivoro")
cout << "aguia" << endl;
else cout << "pomba";
}
else {
if (c == "onivoro")
cout << "homem" << endl;
else cout << "vaca" <<endl;
}
}
else {
if (b == "inseto") {
if (c == "hematofago")
cout << "pulga" << endl;
else cout << "lagarta" << endl;
}
else {
if (c == "hematofago")
cout << "sanguessuga" << endl;
else cout << "minhoca" << endl;
}
}
return 0;
}