AcWing 670. 动物
原题链接
简单
作者:
古娜拉黑暗之神
,
2021-01-30 21:26:55
,
所有人可见
,
阅读 261
#include<iostream>
#include<cstdio>
#include<string>
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 if(c == "onivoro"){
cout<<"pomba"<<endl;
}
}else if(b == "mamifero"){
if(c == "onivoro"){
cout<<"homem"<<endl;
}else if(c == "herbivoro")
cout<<"vaca"<<endl;
}
}else if(a == "invertebrado"){
if(b == "inseto"){
if(c == "hematofago"){
cout<<"pulga"<<endl;
}else if(c == "herbivoro"){
cout<<"lagarta"<<endl;
}
}else if(b == "anelideo"){
if(c == "onivoro"){
cout<<"minhoca"<<endl;
}else if(c == "hematofago"){
cout<<"sanguessuga"<<endl;
}
}
}
return 0;
}