AcWing 670. 动物
原题链接
简单
作者:
深街酒徒
,
2024-10-30 23:28:54
,
所有人可见
,
阅读 1
#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 cout << "pomba";
}
else
{
if (c == "onivoro") cout << "homem";
else cout << "vaca";
}
}
else
{
if (b == "inseto")
{
if (c == "hematofago") cout << "pulga";
else cout << "lagarta";
}
else
{
if (c == "hematofago") cout << "sanguessuga";
else cout << "minhoca";
}
}
return 0;
}