AcWing 670. 动物
原题链接
简单
作者:
逆佛
,
2021-04-25 16:31:21
,
所有人可见
,
阅读 253
确实如y总所说,这个打的也太费劲了,还耗眼神。。。。
#include <cstdio>
#include <cmath>
#include <iostream>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
if(a == "vertebrado" && b == "ave" && c == "carnivoro") cout << "aguia";
else if(a == "vertebrado" && b == "ave" && c == "onivoro") cout << "pomba";
else if(a == "vertebrado" && b == "mamifero" && c == "onivoro") cout << "homem";
else if(a == "vertebrado" && b == "mamifero" && c == "herbivoro") cout << "vaca";
else if(a == "invertebrado" && b == "inseto" && c == "hematofago") cout << "pulga";
else if(a == "invertebrado" && b == "inseto" && c == "herbivoro") cout << "lagarta";
else if(a == "invertebrado" && b == "anelideo" && c == "hematofago") cout << "sanguessuga";
else if(a == "invertebrado" && b == "anelideo" && c == "onivoro") cout << "minhoca";
return 0;
}