题目描述
blablabla
样例
#include <iostream>
#include <string>
using namespace std;
string a ="vertebrado";
string a1 ="invertebrado";
string b1 ="mamifero";
string b2 ="inseto";
string b3 ="anelideo";
string b ="ave";
string c ="carnivoro";
string c1 ="onivoro";
string c2 ="herbivoro";
string c3 ="hematofago";
string j ,k ,l ;
int main()
{
cin>>j>>k>>l;
if(j==a&&k==b&&l==c)
cout<<"aguia";
else if(j==a&&k==b&&l==c1)
cout<<"pomba";
else if(j==a&&k==b1&&l==c1)
cout<<"homem";
else if(j==a&&k==b1&&l==c2)
cout<<"vaca";
else if(j==a1&&k==b2&&l==c3)
cout<<"pulga";
else if(j==a1&&k==b2&&l==c2)
cout<<"lagarta";
else if(j==a1&&k==b3&&l==c3)
cout<<"sanguessuga";
else
cout<<"minhoca";
return 0;
}
算法1
(暴力枚举) $O(n^2)$
blablabla
时间复杂度
参考文献
C++ 代码
blablabla
算法2
(暴力枚举) $O(n^2)$
blablabla
时间复杂度
参考文献
C++ 代码
blablabla