mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-27 20:56:37 +00:00
39 lines
1.0 KiB
C++
39 lines
1.0 KiB
C++
#include <bits/stdc++.h>
|
|
|
|
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 == "hematofago") {
|
|
cout << "sanguessuga" << endl;
|
|
} else if (c == "onivoro") {
|
|
cout << "minhoca" << endl;
|
|
}
|
|
}
|
|
}
|
|
return 0;
|
|
}
|