-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1049.cpp
More file actions
35 lines (32 loc) · 817 Bytes
/
1049.cpp
File metadata and controls
35 lines (32 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
35
#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")
printf("aguia\n");
else
printf("pomba\n");
}else{
if(c == "onivoro")
printf("homem\n");
else
printf("vaca\n");
}
}else{
if(b == "inseto"){
if(c == "hematofago")
printf("pulga\n");
else
printf("lagarta\n");
}else{
if(c == "hematofago")
printf("sanguessuga\n");
else
printf("minhoca\n");
}
}
return 0;
}