-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProblema_1049.cpp
More file actions
34 lines (28 loc) · 817 Bytes
/
Copy pathProblema_1049.cpp
File metadata and controls
34 lines (28 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
@autor: Victor E. B. Rodrigues;
@data: 23/06/2021;
@nome: Animal;
*/
#include <bits/stdc++.h>
#include <map>
using namespace std;
int main() {
cin.tie(NULL);
cout.tie(NULL);
ios::sync_with_stdio(0);
map< string, map< string, map<string,string> > > animais =
{
{"vertebrado", { { "ave", { {"carnivoro", "aguia"}, {"onivoro", "pomba"} } },
{ "mamifero", { {"herbivoro", "vaca"}, {"onivoro", "homem"} } }}
},
{"invertebrado", { { "inseto", { {"hematofago", "pulga"}, {"herbivoro", "lagarta"} } },
{ "anelideo", { {"hematofago", "sanguessuga"}, {"onivoro", "minhoca"} } }}
}
};
string estruturaOssea, classe, digestao;
getline(cin, estruturaOssea);
getline(cin, classe);
getline(cin, digestao);
cout << animais[estruturaOssea][classe][digestao] << endl;
return 0;
}