0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-23 21:28:48 +00:00
Baoshuo Ren 2021-08-01 19:35:18 +08:00 committed by Baoshuo Ren
parent 3c2f792e15
commit da3e3af625
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

38
AcWing/670/670.cpp Normal file
View File

@ -0,0 +1,38 @@
#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;
}