UPC9630 Mad Veterinarian
问题 G: Mad Veterinarian 时间限制: 1 Sec 内存限制: 128 MB Special Judge 提交: 23 解决: 8 [ 提交 ] [ 状态 ] [命题人: admin ] 题目描述 Mad Veterinarian puzzles have a mad veterinarian, who has developed several machines that can transform an animal into one or more animals and back again. The puzzle is then to determine if it is possible to change one collection of animals into another by applying the machines in some order (forward or reverse). For example: Machine A turns one ant into one beaver. Machine B turns one beaver into one ant, one beaver and one cougar. Machine C turns one cougar into one ant and one beaver.