fork download
  1. package main
  2. import "fmt"
  3.  
  4. func main(){
  5.  
  6.  
  7. var a, b, c string
  8.  
  9. fmt.Scanf("%s", &a)
  10. fmt.Scanf("%s", &b)
  11. fmt.Scanf("%s", &c)
  12.  
  13. if (a == "vertebrado") && (b == "ave") && (c == "carnivoro") {
  14. fmt.Printf("aguia")
  15. }
  16. if (a == "vertebrado") && (b == "ave") && (c == "onivoro") {
  17. fmt.Printf("pomba")
  18. }
  19. if (a == "vertebrado") && (b == "mamifero") && (c == "onivoro") {
  20. fmt.Printf("homem")
  21. }
  22. if (a == "vertebrado") && (b == "mamifero") && (c == "herbivoro") {
  23. fmt.Printf("vaca")
  24. }
  25. if (a == "invertebrado") && (b == "inseto") && (c == "hematofago") {
  26. fmt.Printf("pulga")
  27. }
  28. if (a == "invertebrado") && (b == "inseto") && (c == "herbivoro") {
  29. fmt.Printf("lagarta")
  30. }
  31. if (a == "invertebrado") && (b == "anelideo") && (c == "hematofago") {
  32. fmt.Printf("sanguessuga")
  33. }
  34. if (a == "invertebrado") && (b == "anelideo") && (c == "onivoro") {
  35. fmt.Printf("minhoca")
  36. }
  37. }
Success #stdin #stdout 0s 4308KB
stdin
vertebrado
mamifero
onivoro
stdout
homem