AcWing 670. 动物
原题链接
简单
作者:
浙江星辰
,
2020-10-09 15:34:50
,
所有人可见
,
阅读 408
#include<iostream>
#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";
else if(c=="onivoro")cout<<"pomba";}
if(b=="mamifero"){
if(c=="onivoro") cout<<"homem";
else if(c=="herbivoro") cout<<"vaca";}
}
if(a=="invertebrado"){
if (b=="inseto") {
if (c=="hematofago") cout<<"pulga";
if (c=="herbivoro") cout<<"lagarta";}
if(b=="anelideo"){
if (c=="hematofago") cout<<"sanguessuga";
if(c=="onivoro") cout<<"minhoca";}
}
}