Testfest for homework 6

Test cases are in rows. Programs submitted by pairs are in columns.

In each cell, a check mark indicates that the program passed the test. A cross, that it failed the test. A squiggle, that it passed for some combinations of pretty-printed or one-line output, and rapidly-transmitted vs trickle-fed output, but failed for other combinations.

Pairs are identified by the last four digits of their NUIDs (in the same order as their CCS ids appear in their class repo name). Tests are identified similarly, but with the addition of the test number after the two NUID fragments.

Each cell in each row in the matrix is a hyperlink to the test case inputs and outputs.

Results matrix

Test case 0357-6344 0623-8070 0807 1073-6112 1606-4071 2198-0067 2367 2598-8949 2657-7498 3461-8179 3731-4890 3830-7214 3982-5430 5223-6080 6118-3959 7013-1976 7391-9951 7469-3561 7920-7167 9159-5803 9634-1853
0623-8070-3
×
×
×
×
×
×
×
×
×
×
×
0623-8070-5
×
×
×
×
×
×
×
×
×
×
×
1073-6112-5
×
×
×
×
×
1073-6112-6
×
×
×
×
×
×
×
×
×
×
×
1073-6112-7
×
×
×
×
×
×
×
×
×
×
×
1606-4071-1
×
×
×
×
×
×
×
1606-4071-10
×
×
×
×
×
×
×
×
1606-4071-11
×
×
×
×
×
×
×
×
×
1606-4071-12
×
×
×
×
×
×
×
×
×
1606-4071-13
×
×
×
×
×
×
×
×
×
×
1606-4071-20
×
×
×
×
×
1606-4071-4
×
×
×
×
×
×
×
×
×
×
×
1606-4071-7
×
×
×
×
×
×
×
×
×
×
1606-4071-8
×
×
×
×
×
×
×
×
×
×
×
×
1606-4071-9
×
×
×
×
×
×
×
×
×
×
2198-0067-3
×
×
×
×
×
×
×
×
×
×
×
2198-0067-6
×
×
×
×
×
×
×
×
×
2598-8949-1
×
×
×
×
2598-8949-2
×
×
×
×
×
×
×
×
2598-8949-3
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
3461-8179-1
×
×
×
×
×
×
×
×
3461-8179-6
×
×
×
×
×
×
×
×
×
×
×
3830-7214-13
×
×
×
×
×
×
×
×
×
×
×
3830-7214-14
×
×
×
×
×
×
×
3830-7214-3
×
×
×
×
×
×
×
×
×
×
3830-7214-4
×
×
×
×
×
×
×
×
×
×
×
×
×
3830-7214-7
×
×
×
×
×
×
×
×
×
×
×
3830-7214-8
×
×
×
×
×
×
×
×
×
×
×
×
×
3830-7214-9
×
×
×
×
5223-6080-2
×
×
×
×
×
×
×
×
5223-6080-3
×
×
×
×
×
×
×
×
×
6118-3959-1
×
×
×
×
×
×
×
×
×
×
×
×
×
×
6118-3959-2
×
×
×
×
×
×
×
×
×
×
×
6118-3959-3
×
×
×
×
×
×
×
×
×
×
×
6118-3959-4
×
×
×
×
×
×
×
×
×
×
6118-3959-5
×
×
×
×
×
×
×
×
7013-1976-1
×
×
×
×
×
×
×
×
7013-1976-3
×
×
×
×
×
×
×
×
×
7013-1976-4
×
×
×
×
7013-1976-5
×
×
×
×
×
×
×
×
7391-9951-1
×
×
×
×
×
×
×
×
×
7391-9951-2
×
×
×
×
×
×
×
×
×
×
×
×
×
7920-7167-14
×
×
×
×
×
×
×
×
×
×
×
×
×
7920-7167-15
×
×
×
×
×
×
×
×
×
7920-7167-4
×
×
×
×
×
×
×
×
×
×
×
×
×
7920-7167-5
×
×
×
×
×
×
×
×
×
matthias-1
×
×
×
×
×
×
×
×
matthias-10
×
×
×
×
×
×
×
×
×
×
×
×
×
matthias-11
×
×
×
×
×
×
×
×
×
×
×
×
×
matthias-2
×
×
×
×
×
×
×
×
matthias-3
×
×
×
×
×
matthias-4
×
×
×
×
×
×
×
×
×
×
×
matthias-5
×
×
×
×
×
×
×
×
×
×
matthias-6
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
matthias-7
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
matthias-8
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
matthias-9
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×
×

Test cases

0623-8070-3

Input:

[
     [
          [
               "id",
               1
          ],
          [
               "species",
               [
                    [
                         [
                              "food",
                              0
                         ],
                         [
                              "body",
                              0
                         ],
                         [
                              "population",
                              2
                         ],
                         [
                              "traits",
                              []
                         ]
                    ],
                    [
                         [
                              "food",
                              2
                         ],
                         [
                              "body",
                              1
                         ],
                         [
                              "population",
                              2
                         ],
                         [
                              "traits",
                              [
                                   "fat-tissue"
                              ]
                         ],
                         [
                              "fat-food",
                              1
                         ]
                    ],
                    [
                         [
                              "food",
                              2
                         ],
                         [
                              "body",
                              0
                         ],
                         [
                              "population",
                              2
                         ],
                         [
                              "traits",
                              [
                                   "carnivore"
                              ]
                         ]
                    ]
               ]
          ],
          [
               "bag",
               0
          ]
     ],
     1,
     [
          [
               [
                    "id",
                    2
               ],
               [
                    "species",
                    [
                         [
                              [
                                   "food",
                                   0
                              ],
                              [
                                   "body",
                                   0
                              ],
                              [
                                   "population",
                                   1
                              ],
                              [
                                   "traits",
                                   []
                              ]
                         ]
                    ]
               ],
               [
                    "bag",
                    0
               ]
          ],
          [
               [
                    "id",
                    3
               ],
               [
                    "species",
                    [
                         [
                              [
                                   "food",
                                   0
                              ],
                              [
                                   "body",
                                   0
                              ],
                              [
                                   "population",
                                   1
                              ],
                              [
                                   "traits",
                                   []
                              ]
                         ]
                    ]
               ],
               [
                    "bag",
                    0
               ]
          ]
     ]
]

Output:

[["food", 0], ["body", 0], ["population", 2], ["traits", []]]

0623-8070-5

Input:

[
     [
          [
               "id",
               1
          ],
          [
               "species",
               [
                    [
                         [
                              "food",
                              0
                         ],
                         [
                              "body",
                              0
                         ],
                         [
                              "population",
                              1
                         ],
                         [
                              "traits",
                              [
                                   "carnivore"
                              ]
                         ]
                    ],
                    [
                         [
                              "food",
                              0
                         ],
                         [
                              "body",
                              0
                         ],
                         [
                              "population",
                              1
                         ],
                         [
                              "traits",
                              [
                                   "carnivore"
                              ]
                         ]
                    ],
                    [
                         [
                              "food",
                              2
                         ],
                         [
                              "body",
                              0
                         ],
                         [
                              "population",
                              2
                         ],
                         [
                              "traits",
                              [
                                   "carnivore"
                              ]
                         ]
                    ],
                    [
                         [
                              "food",
                              3
                         ],
                         [
                              "body",
                              0
                         ],
                         [
                              "population",
                              3
                         ],
                         [
                              "traits",
                              []
                         ]
                    ]
               ]
          ],
          [
               "bag",
               0
          ]
     ],
     4,
     [
          [
               [
                    "id",
                    2
               ],
               [
                    "species",
                    [
                         [
                              [
                                   "food",
                                   0
                              ],
                              [
                                   "body",
                                   1
                              ],
                              [
                                   "population",
                                   2
                              ],
                              [
                                   "traits",
                                   []
                              ]
                         ],
                         [
                              [
                                   "food",
                                   0
                              ],
                              [
                                   "body",
                                   0
                              ],
                              [
                                   "population",
                                   2
                              ],
                              [
                                   "traits",
                                   []
                              ]
                         ]
                    ]
               ],
               [
                    "bag",
                    0
               ]
          ],
          [
               [
                    "id",
                    3
               ],
               [
                    "species",
                    [
                         [
                              [
                                   "food",
                                   0
                              ],
                              [
                                   "body",
                                   0
                              ],
                              [
                                   "population",
                                   2
                              ],
                              [
                                   "traits",
                                   []
                              ]
                         ],
                         [
                              [
                                   "food",
                                   0
                              ],
                              [
                                   "body",
                                   1
                              ],
                              [
                                   "population",
                                   2
                              ],
                              [
                                   "traits",
                                   [
                                        "carnivore"
                                   ]
                              ]
                         ]
                    ]
               ],
               [
                    "bag",
                    0
               ]
          ],
          [
               [
                    "id",
                    4
               ],
               [
                    "species",
                    [
                         [
                              [
                                   "food",
                                   0
                              ],
                              [
                                   "body",
                                   0
                              ],
                              [
                                   "population",
                                   1
                              ],
                              [
                                   "traits",
                                   []
                              ]
                         ],
                         [
                              [
                                   "food",
                                   0
                              ],
                              [
                                   "body",
                                   0
                              ],
                              [
                                   "population",
                                   1
                              ],
                              [
                                   "traits",
                                   [
                                        "warning-call",
                                        "hard-shell"
                                   ]
                              ]
                         ]
                    ]
               ],
               [
                    "bag",
                    0
               ]
          ]
     ]
]

Output:

[[["food", 0], ["body", 0], ["population", 1], ["traits", ["carnivore"]]], [["id", 2], ["species", [[["food", 0], ["body", 1], ["population", 2], ["traits", []]], [["food", 0], ["body", 0], ["population", 2], ["traits", []]]]], ["bag", 0]], [["food", 0], ["body", 1], ["population", 2], ["traits", []]]]

1073-6112-5

Input:

[
	[
		["id", 1],
		["species", [
			[
				["food", 5],
				["body", 2],
				["population", 5],
				["traits", ["horns"]]
			], 
[
				["food", 0],
				["body", 2],
				["population", 4],
				["traits", ["carnivore"]]
			]
		]
], 
		["bag", 3]
	],
	5, [
		[
			["id", 2],
			["species", [
				[
					["food", 3],
					["body", 2],
					["population", 3],
					["traits", ["burrowing", "horns"]]
				]
			]],
			["bag", 3]
		]
	]
]

Output:

false

1073-6112-6

Input:

[
	[
		["id", 1],
		["species", [
			[
				["food", 1],
				["body", 2],
				["population", 3],
				["traits", ["carnivore", "horns"]]
			], 
[
				["food", 0],
				["body", 2],
				["population", 4],
				["traits", ["carnivore", "ambush"]]
			]
		]
], 
		["bag", 1]
	],
	5, [
		[
			["id", 2],
			["species", [
				[
					["food", 3],
					["body", 2],
					["population", 7],
					["traits", ["climbing", "ambush"]]
				], 
[
					["food", 3],
					["body", 2],
					["population", 3],
					["traits", ["fertile", "carnivore"]]
				]
			]],
			["bag", 6]
		], 
[
			["id", 3],
			["species", [
				[
					["food", 0],
					["body", 2],
					["population", 3],
					["traits", ["burrowing", "horns"]]
				], 
[
					["food", 3],
					["body", 2],
					["population", 5],
					["traits", ["pack-hunting", "long-neck"]]
				]
			]],
			["bag", 3]
		], 
[
			["id", 4],
			["species", [
				[
					["food", 1],
					["body", 2],
					["population", 7],
					["traits", ["burrowing", "foraging"]]
				], 
[
					["food", 3],
					["body", 2],
					["population", 3],
					["traits", ["warning-call", "hard-shell"]]
				]
			]],
			["bag", 0]
		]
	]
]

Output:

[[["food",0],["body",2],["population",4],["traits",["carnivore","ambush"]]],[["id",4],["species",[[["food",1],["body",2],["population",7],["traits",["burrowing","foraging"]]],[["food",3],["body",2],["population",3],["traits",["warning-call","hard-shell"]]]]],["bag",0]],[["food",1],["body",2],["population",7],["traits",["burrowing","foraging"]]]]

1073-6112-7

Input:

[
	[
		["id", 1],
		["species", [
			[
				["food", 1],
				["body", 2],
				["population", 3],
				["traits", ["carnivore", "horns"]]
			],
			[
				["food", 1],
				["body", 3],
				["population", 3],
				["traits", ["carnivore", "ambush"]]
			]
		]],
		["bag", 1]
	],
	5, [
		[
			["id", 2],
			["species", [
				[
					["food", 1],
					["body", 2],
					["population", 1],
					["traits", ["ambush"]]
				], 
[
					["food", 1],
					["body", 2],
					["population", 1],
					["traits", ["fertile"]]
				]
			]],
			["bag", 6]
		],
		[
			["id", 3],
			["species", [
				[
					["food", 1],
					["body", 2],
					["population", 1],
					["traits", ["horns"]]
				], 
[
					["food", 1],
					["body", 2],
					["population", 1],
					["traits", ["symbiosis"]]
				]
			]],
			["bag", 3]
		],
		[
			["id", 4],
			["species", [
				[
					["food", 1],
					["body", 2],
					["population", 1],
					["traits", ["foraging"]]
				], 
[
					["food", 1],
					["body", 2],
					["population", 1],
					["traits", ["long-neck"]]
				]
			]],
			["bag", 0]
		]
	]
]

Output:

[[["food",1],["body",3],["population",3],["traits",["carnivore","ambush"]]],[["id",2],["species",[[["food",1],["body",2],["population",1],["traits",["ambush"]]],[["food",1],["body",2],["population",1],["traits",["fertile"]]]]],["bag",6]],[["food",1],["body",2],["population",1],["traits",["ambush"]]]]

1606-4071-1

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 0],
          ["body", 0],
          ["population", 1],
          ["traits",[]]
        ],
        [
          ["food", 0],
          ["body", 0],
          ["population", 1],
          ["traits",[]]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[
  ["food", 0],
  ["body", 0],
  ["population", 1],
  ["traits",[]]
]

1606-4071-10

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 2],
          ["body", 2],
          ["population", 6],
          ["traits",[]]
        ],
        [
          ["food", 1],
          ["body", 0],
          ["population", 7],
          ["traits",[]]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[
  ["food", 1],
  ["body", 0],
  ["population", 7],
  ["traits",[]]
]

1606-4071-11

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 2],
          ["body", 2],
          ["population", 6],
          ["traits",[]]
        ],
        [
          ["food", 1],
          ["body", 3],
          ["population", 6],
          ["traits",[]]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[
  ["food", 2],
  ["body", 2],
  ["population", 6],
  ["traits",[]]
]

1606-4071-12

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 2],
          ["body", 2],
          ["population", 6],
          ["traits",[]]
        ],
        [
          ["food", 2],
          ["body", 3],
          ["population", 6],
          ["traits",[]]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[
  ["food", 2],
  ["body", 3],
  ["population", 6],
  ["traits",[]]
]

1606-4071-13

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 2],
          ["body", 2],
          ["population", 6],
          ["traits",[]]
        ],
        [
          ["food", 6],
          ["body", 2],
          ["population", 6],
          ["traits",[]]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[
  ["food", 2],
  ["body", 2],
  ["population", 6],
  ["traits",[]]
]

1606-4071-20

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 1],
          ["body", 1],
          ["population", 3],
          ["traits",["carnivore"]]
        ],
        [
          ["food", 2],
          ["body", 1],
          ["population", 3],
          ["traits",["carnivore"]]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 1],
            ["body", 1],
            ["population", 1],
            ["traits",["burrowing"]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

false

1606-4071-4

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 2],
          ["body", 5],
          ["population", 2],
          ["traits",["fat-tissue"]],
          ["fat-food", 3]
        ],
        [
          ["food", 2],
          ["body", 2],
          ["population", 2],
          ["traits",["fat-tissue"]],
          ["fat-food", 0]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[
  [
    ["food", 2],
    ["body", 5],
    ["population", 2],
    ["traits",["fat-tissue"]],
    ["fat-food", 3]
  ],
  2
]

1606-4071-7

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 2],
          ["body", 5],
          ["population", 2],
          ["traits",["fat-tissue"]],
          ["fat-food", 3]
        ],
        [
          ["food", 2],
          ["body", 7],
          ["population", 7],
          ["traits",[]]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[
  [
    ["food", 2],
    ["body", 5],
    ["population", 2],
    ["traits",["fat-tissue"]],
    ["fat-food", 3]
  ],
  2
]

1606-4071-8

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 2],
          ["body", 5],
          ["population", 2],
          ["traits",["fat-tissue"]],
          ["fat-food", 3]
        ],
        [
          ["food", 2],
          ["body", 5],
          ["population", 3],
          ["traits",["fat-tissue"]],
          ["fat-food", 3]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[
  [
    ["food", 2],
    ["body", 5],
    ["population", 3],
    ["traits",["fat-tissue"]],
    ["fat-food", 3]
  ],
  2
]

1606-4071-9

Input:

[
  [
    ["id", 1],
    ["species",
      [
        [
          ["food", 7],
          ["body", 7],
          ["population", 7],
          ["traits",[]]
        ],
        [
          ["food", 1],
          ["body", 0],
          ["population", 7],
          ["traits",[]]
        ]
      ]
    ],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species",
        [
          [
            ["food", 0],
            ["body", 0],
            ["population", 1],
            ["traits",[]]
          ]
        ]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[
  ["food", 1],
  ["body", 0],
  ["population", 7],
  ["traits",[]]
]

2198-0067-3

Input:

[
  [
    ["id", 2],
    ["species",
      [[
        ["food", 1],
        ["body", 1],
        ["population", 5],
        ["traits", ["burrowing"]]
      ],
      [
        ["food", 1],
        ["body", 1],
        ["population", 3],
        ["traits", ["foraging"]]
      ],
      [
        ["food", 2],
        ["body", 3],
        ["population", 7],
        ["traits", ["fat-tissue"]],
        ["fat-food", 1]
      ]
    ]],
    ["bag", 1]
  ],
  10,
  [
    [["id", 1],
      ["species", []],
      ["bag", 0]]
  ]
]

Output:

[
  [
    [
      "food",
      2
    ],
    [
      "body",
      3
    ],
    [
      "population",
      7
    ],
    [
      "traits",
      [
        "fat-tissue"
      ]
    ],
    [
      "fat-food",
      1
    ]
  ],
  2
]

2198-0067-6

Input:

[
  [
    ["id", 3],
    ["species",
      [
      [
        ["food", 1],
        ["body", 1],
        ["population", 3],
        ["traits", ["herding"]]
      ],
      [
        ["food", 1],
        ["body", 4],
        ["population", 6],
        ["traits", ["carnivore"]]
      ],
      [
        ["food", 1],
        ["body", 1],
        ["population", 3],
        ["traits", ["foraging"]]
      ],[
        ["food", 1],
        ["body", 1],
        ["population", 5],
        ["traits", ["burrowing"]]
      ]
    ]],
    ["bag", 1]
  ],
  10,
  [
    [
      ["id", 4],
      ["species",
        [[
          ["food", 1],
          ["body", 2],
          ["population", 6],
          ["traits", ["symbiosis"]]
        ],
        [
          ["food", 1],
          ["body", 4],
          ["population", 5],
          ["traits", ["herding"]]
        ]
      ]],
      ["bag", 5]
    ],
    [
      ["id", 5],
      ["species",
        [[
          ["food", 1],
          ["body", 5],
          ["population", 6],
          ["traits", ["scavenger"]]
        ],
        [
          ["food", 1],
          ["body", 4],
          ["population", 5],
          ["traits", ["symbiosis"]]
        ],
        [
          ["food", 5],
          ["body", 5],
          ["population", 5],
          ["traits", ["burrowing"]]
        ]
      ]],
      ["bag", 5]
    ],
    [
      ["id", 6],
      ["species",
        [[
          ["food", 1],
          ["body", 2],
          ["population", 3],
          ["traits", ["symbiosis"]]
        ],
        [
          ["food", 1],
          ["body", 5],
          ["population", 6],
          ["traits", ["foraging"]]
        ]
      ]],
      ["bag", 5]
    ]
  ]
]

Output:

[
  [
    "food",
    1
  ],
  [
    "body",
    1
  ],
  [
    "population",
    5
  ],
  [
    "traits",
    [
      "burrowing"
    ]
  ]
]

2598-8949-1

Input:

[
  [
    ["id", 1],
    ["species", [
      [
        ["food", 2],
        ["body", 2],
        ["population", 3],
        ["traits", ["carnivore"]]
      ]]
    ],
    ["bag", 1]
  ],
  10,
  [
    [
      ["id", 2],
      ["species", [
        [
          ["food", 2],
          ["body", 3],
          ["population", 4],
          ["traits", ["climbing", "burrowing"]]
      ]]
    ],
      ["bag", 2]
    ],
    [
      ["id", 3],
      ["species", [
        [
          ["food", 2],
          ["body", 2],
          ["population", 2],
          ["traits", ["climbing", "burrowing"]]
        ]]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

false

2598-8949-2

Input:

[
  [
    ["id", 1],
    ["species", [
      [
        ["food", 2],
        ["body", 2],
        ["population", 3],
        ["traits", []]
      ],
      [
        ["food", 2],
        ["body", 2],
        ["population", 5],
        ["traits", []]
      ]
      ]
    ],
    ["bag", 1]
  ],
  10,
  [
    [
      ["id", 2],
      ["species", [
        [
          ["food", 2],
          ["body", 3],
          ["population", 4],
          ["traits", ["climbing", "burrowing"]]
      ]]
    ],
      ["bag", 2]
    ],
    [
      ["id", 3],
      ["species", [
        [
          ["food", 2],
          ["body", 2],
          ["population", 2],
          ["traits", ["climbing", "burrowing"]]
        ]]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[["food", 2], ["body", 2], ["population", 5], ["traits", []]]

2598-8949-3

Input:

[
  [
    ["id", 1],
    ["species", [
      [
        ["food", 2],
        ["body", 2],
        ["population", 3],
        ["traits", ["fat-tissue"]]
      ],
      [
        ["food", 2],
        ["body", 2],
        ["population", 5],
        ["traits", []]
      ]
      ]
    ],
    ["bag", 1]
  ],
  10,
  [
    [
      ["id", 2],
      ["species", [
        [
          ["food", 2],
          ["body", 3],
          ["population", 4],
          ["traits", ["climbing", "carnivore"]]
      ]]
    ],
      ["bag", 2]
    ],
    [
      ["id", 3],
      ["species", [
        [
          ["food", 2],
          ["body", 2],
          ["population", 2],
          ["traits", ["climbing", "burrowing"]]
        ]]
      ],
      ["bag", 0]
    ]
  ]
]

Output:

[[["food", 2], ["body", 2], ["population", 3], ["traits", ["fat-tissue"]]], 2]

3461-8179-1

Input:

[
  [
    ["id", 1],
    ["species", [
      [
        ["food", 0],
        ["body", 0],
        ["population", 2],
        ["traits", ["carnivore"]]
      ],
      [
        ["food", 4],
        ["body", 3],
        ["population", 4],
        ["traits", ["fat-tissue"]],
        ["fat-food", 3]
      ]
    ]],
    ["bag", 0]
  ],
  10,
  [
    [
      ["id", 2],
      ["species", [
        [
          ["food", 0],
          ["body", 1],
          ["population", 3],
          ["traits", ["climbing"]]
        ]
      ]],
      ["bag", 3]
    ]
  ]
]

Output:

false

3461-8179-6

Input:

[
  [
    ["id", 1],
    ["species", [
      [
        ["food", 0],
        ["body", 0],
        ["population", 2],
        ["traits", []]],
      [
        ["food", 0],
        ["body", 0],
        ["population", 2],
        ["traits", []]],
      [
        ["food", 3],
        ["body", 3],
        ["population", 6],
        ["traits", ["burrowing"]]],
      [
        ["food", 3],
        ["body", 3],
        ["population", 6],
        ["traits", []]]
    ]],
    ["bag", 5]],
  15,
  [
    [
      ["id", 2],
      ["species", []],
      ["bag", 3]
    ],
    [
      ["id", 3],
      ["species", []],
      ["bag", 0]
    ]
  ]
]

Output:

[
  ["food", 3],
  ["body", 3],
  ["population", 6],
  ["traits", ["burrowing"]]
]

3830-7214-13

Input:

[[["id",10],
  ["species",[[["food",1],
               ["body",2],
               ["population",1],
               ["traits",["fat-tissue"]],
               ["fat-food",1]],
              [["food",1],
               ["body",5],
               ["population",1],
               ["traits",["fat-tissue"]],
               ["fat-food",1]]]],
  ["bag",10]],
 7,
 [[["id",11],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",[]]]]],
   ["bag",10]],
  [["id",12],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",[]]]]],
   ["bag",10]]]]

Output:

[[["food",1],
  ["body",5],
  ["population",1],
  ["traits",["fat-tissue"]],
  ["fat-food",1]],
 4]

3830-7214-14

Input:

[[["id",10],
  ["species",[[["food",0],
               ["body",5],
               ["population",1],
               ["traits",[]]],
              [["food",0],
               ["body",2],
               ["population",1],
               ["traits",[]]]]],
  ["bag",10]],
 7,
 [[["id",11],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",["burrowing"]]]]],
   ["bag",10]],
  [["id",12],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",["burrowing"]]]]],
   ["bag",10]]]]

Output:

[["food",0],
 ["body",5],
 ["population",1],
 ["traits",[]]]

3830-7214-3

Input:

[[["id",10],
  ["species",[[["food",0],
               ["body",1],
               ["population",1],
               ["traits",[]]]]],
  ["bag",10]],
 7,
 [[["id",11],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",[]]]]],
   ["bag",10]],
  [["id",12],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",[]]]]],
   ["bag",10]]]]

Output:

[["food",0],
 ["body",1],
 ["population",1],
 ["traits",[]]]

3830-7214-4

Input:

[[["id",10],
  ["species",[[["food",1],
               ["body",1],
               ["population",1],
               ["traits",[]]]]],
  ["bag",10]],
 7,
 [[["id",11],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",[]]]]],
   ["bag",10]],
  [["id",12],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",[]]]]],
   ["bag",10]]]]

Output:


3830-7214-7

Input:

[[["id",10],
  ["species",[[["food",1],
               ["body",4],
               ["population",1],
               ["traits",["fat-tissue"]],
               ["fat-food",2]]]],
  ["bag",10]],
 12,
 [[["id",11],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",[]]]]],
   ["bag",10]],
  [["id",12],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",[]]]]],
   ["bag",10]]]]

Output:

[[["food",1],
  ["body",4],
  ["population",1],
  ["traits",["fat-tissue"]],
  ["fat-food",2]],
 2]

3830-7214-8

Input:

[[["id",10],
  ["species",[[["food",1],
               ["body",4],
               ["population",1],
               ["traits",["fat-tissue"]],
               ["fat-food",4]]]],
  ["bag",10]],
 12,
 [[["id",11],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",[]]]]],
   ["bag",10]],
  [["id",12],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",[]]]]],
   ["bag",10]]]]

Output:


3830-7214-9

Input:

[[["id",10],
  ["species",[[["food",0],
                 ["body",1],
                 ["population",1],
                 ["traits",["carnivore"]]],
              [["food",1],
               ["body",1],
               ["population",1],
               ["traits",[]]]]],
  ["bag",10]],
 7,
 [[["id",11],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",["burrowing"]]]]],
   ["bag",10]],
  [["id",12],
   ["species",[[["food",1],
                ["body",1],
                ["population",1],
                ["traits",["burrowing"]]]]],
   ["bag",10]]]]

Output:

false

5223-6080-2

Input:

[[["id",1],
  ["species",
     	[[["food",0],
		  ["body",4],
		  ["population",2],
		  ["traits",
		    ["carnivore"]]]]],
  ["bag",0]], 
 10,
 [[["id",2],
   ["species",
      [[["food",1],
		["body",3],
        ["population",3],
		["traits",
		    ["herding"]]],
	   [["food",1],
		["body",2],
		["population",4],
		["traits",
		    ["carnivore", "ambush"]]]]],
   ["bag",0]],

   [["id",3],
    ["species",
     	[[["food",0],
		  ["body",1],
		  ["population",2],
		  ["traits",[]]]]],
    ["bag",0]]]]

Output:

[[["food",0],
  ["body",4],
  ["population",2],
  ["traits",
    ["carnivore"]]],

 [["id",2],
  ["species",
     [[["food",1],
	   ["body",3],
	   ["population",3],
	   ["traits",
		    ["herding"]]],
	  [["food",1],
	   ["body",2],
	   ["population",4],
	   ["traits",
		    ["carnivore", "ambush"]]]]],
     ["bag",0]],

 [["food",1],
  ["body",2],
  ["population",4],
  ["traits",
		["carnivore", "ambush"]]]
]

5223-6080-3

Input:

[[["id",1],
  ["species",
     [[["food",0],
	   ["body",1],
	   ["population",1],
	   ["traits",
		    ["symbiosis"]]],
	  [["food",0],
	   ["body",3],
       ["population",1],
       ["traits",
		   ["warning-call"]]]]],
  ["bag",0]], 
  10,
  [[["id",2],
    ["species",
       [[["food",2],
		 ["body",2],
		 ["population",2],
		 ["traits",[]]],
		[["food",0],
		 ["body",1],
		 ["population",1],
		 ["traits", []]]]],
    ["bag",0]],
     
   [["id",3],
    ["species",
       [[["food",0],
		 ["body",1],
		 ["population",1],
		 ["traits",[]]]]],
    ["bag",0]]]]

Output:

[["food",0],
 ["body",3],
 ["population",1],
 ["traits",
	["warning-call"]]]

6118-3959-1

Input:

[[["id", 1], ["species", [[["food", 1], ["body", 2], ["population", 4], ["traits", ["fat-tissue", "carnivore"]], ["fat-food", 2]], [["food", 1], ["body", 2], ["population", 3], ["traits", ["carnivore"]]]]], ["bag", 2]], 10, [[["id", 2], ["species", [[["food", 1], ["body", 2], ["population", 2], ["traits", []]]]], ["bag", 2]], [["id", 6], ["species", [[["food", 1], ["body", 2], ["population", 2], ["traits", []]]]], ["bag", 2]]]]

Output:

[[["food", 1], ["body", 2], ["population", 4], ["traits", ["fat-tissue", "carnivore"]], ["fat-food", 2]], [["id", 2], ["species", [[["food", 1], ["body", 2], ["population", 2], ["traits", []]]]], ["bag", 2]], [["food", 1], ["body", 2], ["population", 2], ["traits", []]]]

6118-3959-2

Input:

[[["id", 1], ["species", [[["food", 2], ["body", 2], ["population", 2], ["traits", ["fat-tissue"]], ["fat-food", 2]], [["food", 1], ["body", 2], ["population", 2], ["traits", ["carnivore"]]]]], ["bag", 2]], 10, [[["id", 2], ["species", [[["food", 1], ["body", 2], ["population", 2], ["traits", []]]]], ["bag", 2]], [["id", 6], ["species", [[["food", 1], ["body", 2], ["population", 2], ["traits", []]]]], ["bag", 2]]]]

Output:

[[["food", 1], ["body", 2], ["population", 2], ["traits", ["carnivore"]]], [["id", 2], ["species", [[["food", 1], ["body", 2], ["population", 2], ["traits", []]]]], ["bag", 2]], [["food", 1], ["body", 2], ["population", 2], ["traits", []]]]

6118-3959-3

Input:

[[["id", 1], ["species", [[["food", 1], ["body", 6], ["population", 2], ["traits", ["fat-tissue"]], ["fat-food", 2]], [["food", 1], ["body", 2], ["population", 3], ["traits", ["carnivore"]]]]], ["bag", 2]], 2, [[["id", 3], ["species", [[["food", 1], ["body", 2], ["population", 2], ["traits", []]]]], ["bag", 2]], [["id", 6], ["species", [[["food", 1], ["body", 2], ["population", 2], ["traits", []]]]], ["bag", 2]]]]

Output:

[[["food", 1], ["body", 6], ["population", 2], ["traits", ["fat-tissue"]], ["fat-food", 2]], 2]

6118-3959-4

Input:

[[["id", 1], ["species", [[["food", 1], ["body", 2], ["population", 5], ["traits", ["carnivore"]]], [["food", 1], ["body", 2], ["population", 3], ["traits", ["carnivore"]]]]], ["bag", 2]], 10, [[["id", 2], ["species", [[["food", 1], ["body", 2], ["population", 2], ["traits", []]], [["food", 1], ["body", 2], ["population", 2], ["traits", []]]]], ["bag", 3]], [["id", 3], ["species", [[["food", 1], ["body", 2], ["population", 2], ["traits", []]]]], ["bag", 3]]]]

Output:

[[["food", 1], ["body", 2], ["population", 5], ["traits", ["carnivore"]]], [["id", 2], ["species", [[["food", 1], ["body", 2], ["population", 2], ["traits", []]], [["food", 1], ["body", 2], ["population", 2], ["traits", []]]]], ["bag", 3]], [["food", 1], ["body", 2], ["population", 2], ["traits", []]]]

6118-3959-5

Input:

[[["id", 1], ["species", [[["food", 1], ["body", 2], ["population", 2], ["traits", ["fat-tissue"]], ["fat-food", 1]], [["food", 1], ["body", 2], ["population", 2], ["traits", ["fat-tissue"]], ["fat-food", 1]]]], ["bag", 2]], 10, [[["id", 2], ["species", [[["food", 1], ["body", 2], ["population", 2], ["traits", []]]]], ["bag", 2]], [["id", 6], ["species", [[["food", 1], ["body", 2], ["population", 2], ["traits", []]]]], ["bag", 2]]]]

Output:

[[["food", 1], ["body", 2], ["population", 2], ["traits", ["fat-tissue"]], ["fat-food", 1]], 1]

7013-1976-1

Input:

[
  [
    [
      "id",
      1
    ],
    [
      "species",
      [
        [
          [
            "food",
            2
          ],
          [
            "body",
            2
          ],
          [
            "population",
            3
          ],
          [
            "traits",
            []
          ]
        ],
        [
          [
            "food",
            3
          ],
          [
            "body",
            4
          ],
          [
            "population",
            6
          ],
          [
            "traits",
            []
          ]
        ]
      ]
    ],
    [
      "bag",
      2
    ]
  ],
  3,
  [
    [
      [
        "id",
        2
      ],
      [
        "species",
        []
      ],
      [
        "bag",
        0
      ]
    ],
    [
      [
        "id",
        3
      ],
      [
        "species",
        []
      ],
      [
        "bag",
        0
      ]
    ]
  ]
]

Output:

[["food", 3], ["body", 4], ["population", 6], ["traits", []]]

7013-1976-3

Input:

[[["id", 1], ["species", [[["food", 2], ["body", 2], ["population", 3], ["traits", ["carnivore"]]]]], ["bag", 2]], 3, [[["id", 2], ["species", [[["food", 3], ["body", 4], ["population", 6], ["traits", ["carnivore"]]]]], ["bag", 0]], [["id", 3], ["species", []], ["bag", 0]]]]

Output:

[[["food", 2], ["body", 2], ["population", 3], ["traits", ["carnivore"]]], [["id", 2], ["species", [[["food", 3], ["body", 4], ["population", 6], ["traits", ["carnivore"]]]]], ["bag", 0]], [["food", 3], ["body", 4], ["population", 6], ["traits", ["carnivore"]]]]

7013-1976-4

Input:

[
  [
    [
      "id",
      1
    ],
    [
      "species",
      [
        [
          [
            "food",
            2
          ],
          [
            "body",
            2
          ],
          [
            "population",
            3
          ],
          [
            "traits",
            [
              "carnivore"
            ]
          ]
        ],
        [
          [
            "food",
            3
          ],
          [
            "body",
            4
          ],
          [
            "population",
            6
          ],
          [
            "traits",
            [
              "carnivore"
            ]
          ]
        ]
      ]
    ],
    [
      "bag",
      2
    ]
  ],
  3,
  [
    [
      [
        "id",
        2
      ],
      [
        "species",
        []
      ],
      [
        "bag",
        0
      ]
    ],
    [
      [
        "id",
        3
      ],
      [
        "species",
        []
      ],
      [
        "bag",
        0
      ]
    ]
  ]
]

Output:

false

7013-1976-5

Input:

[[["id", 1], ["species", [[["food", 3], ["body", 3], ["population", 3], ["traits", []]], [["food", 3], ["body", 4], ["population", 6], ["traits", ["carnivore"]]]]], ["bag", 2]], 3, [[["id", 2], ["species", [[["food", 2], ["body", 3], ["population", 3], ["traits", []]]]], ["bag", 0]], [["id", 3], ["species", []], ["bag", 0]]]]

Output:

[[["food", 3], ["body", 4], ["population", 6], ["traits", ["carnivore"]]], [["id", 2], ["species", [[["food", 2], ["body", 3], ["population", 3], ["traits", []]]]], ["bag", 0]], [["food", 2], ["body", 3], ["population", 3], ["traits", []]]]

7391-9951-1

Input:

[
	[
		["id", 1],
		["species",
			[
				[
					["food", 5],
					["body", 5],
					["population", 5],
					["traits", []],
					["fat-food", 0]
				]
			]
		],
		["bag", 0]
	],
	10,
	[
		[
			["id", 2],
			["species", []],
			["bag", 0]
		],
		[
			["id", 3],
			["species", []],
			["bag", 0]
		],
		[
			["id", 4],
			["species", []],
			["bag", 0]
		]
	]
]

Output:


7391-9951-2

Input:

[
	[
		["id", 1],
		["species",
			[
				[
					["food", 2],
					["body", 2],
					["population", 4],
					["traits", ["fat-tissue"]],
					["fat-food", 0]
				],
				[
					["food", 1],
					["body", 3],
					["population", 5],
					["traits", ["fat-tissue"]],
					["fat-food", 1]
				]
			]
		],
		["bag", 0]
	],
	10,
	[
		[
			["id", 2],
			["species", []],
			["bag", 0]
		],
		[
			["id", 3],
			["species", []],
			["bag", 0]
		],
		[
			["id", 4],
			["species", []],
			["bag", 0]
		]
	]
]

Output:

[[["food",1],["body",3],["population",5],["traits",["fat-tissue"]],["fat-food",1]],2]

7920-7167-14

Input:

[
  [["id", 1],
  ["species", [[["food", 3],
		 ["body", 5],
		 ["population", 7],
		 ["traits", ["carnivore", "scavenger"]]],
		[["food", 0],
		 ["body", 3],
		 ["population", 6],
		 ["traits", ["scavenger", "fat-tissue"]],
		 ["fat-food", 1]],
		[["food", 1],
		 ["body", 4],
		 ["population", 3],
		 ["traits", ["fertile", "long-neck", "scavenger"]]]]],
  ["bag", 3]],

  12,

  []]

Output:

[[["food", 0], ["body", 3], ["population", 6], ["traits", ["scavenger", "fat-tissue"]], ["fat-food", 1]], 2]

7920-7167-15

Input:

[
  [["id", 1],
  ["species", [
        [["food", 1],
		 ["body", 4],
		 ["population", 7],
		 ["traits", ["fertile", "long-neck", "scavenger"]]],
		 [["food", 0],
		 ["body", 3],
		 ["population", 6],
		 ["traits", ["scavenger"]]],
		 [["food", 3],
		 ["body", 5],
		 ["population", 4],
		 ["traits", ["carnivore", "scavenger"]]]
		]],
  ["bag", 3]],
  
  12,

  []]
  

  

Output:

[["food", 1], ["body", 4], ["population", 7], ["traits", ["fertile", "long-neck", "scavenger"]]]

7920-7167-4

Input:

[
  [["id", 1],
  ["species", [[["food", 3],
		 ["body", 5],
		 ["population", 7],
		 ["traits", ["carnivore", "scavenger"]]],
		[["food", 0],
		 ["body", 3],
		 ["population", 6],
		 ["traits", ["scavenger", "fat-tissue"]],
		 ["fat-food", 1]],
		[["food", 1],
		 ["body", 4],
		 ["population", 3],
		 ["traits", ["fertile", "long-neck", "scavenger"]]]]],
  ["bag", 3]],

  12,

  []]

Output:

[[["food", 0], ["body", 3], ["population", 6], ["traits", ["scavenger", "fat-tissue"]], ["fat-food", 1]], 2]

7920-7167-5

Input:

[
  [["id", 1],
  ["species", [
        [["food", 1],
		 ["body", 4],
		 ["population", 7],
		 ["traits", ["fertile", "long-neck", "scavenger"]]],
		 [["food", 0],
		 ["body", 3],
		 ["population", 6],
		 ["traits", ["scavenger"]]],
		 [["food", 3],
		 ["body", 5],
		 ["population", 4],
		 ["traits", ["carnivore", "scavenger"]]]
		]],
  ["bag", 3]],

  12,

  []]

Output:

[["food", 1], ["body", 4], ["population", 7], ["traits", ["fertile", "long-neck", "scavenger"]]]

matthias-1

Input:

[[["id",1],["species",[[["food",0],["body",3],["population",1],["traits",[]]],[["food",1],["body",3],["population",1],["traits",[]]],[["food",0],["body",3],["population",1],["traits",["carnivore"]]]]],["bag",0]],1,[]]

Output:

[["food",0],["body",3],["population",1],["traits",[]]]

matthias-10

Input:

[[["id",11],["species",[[["food",3],["body",3],["population",3],["traits",["fat-tissue","climbing"]],["fat-food",2]]]],["bag",0]],3,[]]

Output:

[[["food",3],["body",3],["population",3],["traits",["fat-tissue","climbing"]],["fat-food",2]],1]

matthias-11

Input:

[[["id",11],["species",[[["food",3],["body",3],["population",3],["traits",["fat-tissue","climbing"]],["fat-food",1]]]],["bag",0]],2,[]]

Output:

[[["food",3],["body",3],["population",3],["traits",["fat-tissue","climbing"]],["fat-food",1]],2]

matthias-2

Input:

[[["id",55],["species",[[["food",0],["body",3],["population",1],["traits",[]]],[["food",0],["body",3],["population",1],["traits",["climbing"]]]]],["bag",0]],1,[]]

Output:

[["food",0],["body",3],["population",1],["traits",[]]]

matthias-3

Input:

[[["id",2],["species",[[["food",0],["body",3],["population",1],["traits",["carnivore"]]],[["food",1],["body",3],["population",1],["traits",[]]]]],["bag",0]],1,[]]

Output:

false

matthias-4

Input:

[[["id",2],["species",[[["food",0],["body",3],["population",1],["traits",["carnivore"]]],[["food",1],["body",3],["population",1],["traits",[]]]]],["bag",0]],1,[[["id",100],["species",[]],["bag",0]],[["id",3],["species",[[["food",0],["body",3],["population",1],["traits",["climbing"]]]]],["bag",0]],[["id",1],["species",[[["food",0],["body",3],["population",1],["traits",[]]],[["food",1],["body",3],["population",1],["traits",[]]],[["food",0],["body",3],["population",1],["traits",["carnivore"]]]]],["bag",0]]]]

Output:

[[["food",0],["body",3],["population",1],["traits",["carnivore"]]],[["id",1],["species",[[["food",0],["body",3],["population",1],["traits",[]]],[["food",1],["body",3],["population",1],["traits",[]]],[["food",0],["body",3],["population",1],["traits",["carnivore"]]]]],["bag",0]],[["food",1],["body",3],["population",1],["traits",[]]]]

matthias-5

Input:

[[["id",2],["species",[[["food",0],["body",3],["population",1],["traits",["carnivore"]]],[["food",1],["body",3],["population",1],["traits",[]]]]],["bag",0]],1,[[["id",100],["species",[]],["bag",0]],[["id",3],["species",[[["food",0],["body",3],["population",1],["traits",["climbing"]]]]],["bag",0]],[["id",4],["species",[[["food",1],["body",3],["population",1],["traits",[]]]]],["bag",0]],[["id",5],["species",[[["food",1],["body",3],["population",1],["traits",[]]]]],["bag",0]],[["id",6],["species",[[["food",0],["body",3],["population",1],["traits",["carnivore"]]]]],["bag",0]]]]

Output:

[[["food",0],["body",3],["population",1],["traits",["carnivore"]]],[["id",4],["species",[[["food",1],["body",3],["population",1],["traits",[]]]]],["bag",0]],[["food",1],["body",3],["population",1],["traits",[]]]]

matthias-6

Input:

[[["id",7],["species",[[["food",0],["body",3],["population",1],["traits",[]]],[["food",0],["body",2],["population",3],["traits",["fat-tissue"]]],[["food",1],["body",3],["population",1],["traits",[]]],[["food",0],["body",3],["population",1],["traits",["carnivore"]]]]],["bag",0]],2,[[["id",100],["species",[]],["bag",0]]]]

Output:

[[["food",0],["body",2],["population",3],["traits",["fat-tissue"]]],2]

matthias-7

Input:

[[["id",8],["species",[[["food",0],["body",2],["population",3],["traits",["fat-tissue"]]],[["food",0],["body",5],["population",3],["traits",["fat-tissue"]]]]],["bag",0]],2,[[["id",100],["species",[]],["bag",0]]]]

Output:

[[["food",0],["body",5],["population",3],["traits",["fat-tissue"]]],2]

matthias-8

Input:

[[["id",9],["species",[[["food",0],["body",3],["population",2],["traits",["fat-tissue"]]],[["food",0],["body",3],["population",3],["traits",["fat-tissue"]]]]],["bag",0]],2,[]]

Output:

[[["food",0],["body",3],["population",3],["traits",["fat-tissue"]]],2]

matthias-9

Input:

[[["id",10],["species",[[["food",0],["body",3],["population",3],["traits",["fat-tissue","climbing"]]],[["food",0],["body",3],["population",3],["traits",["fat-tissue"]]]]],["bag",0]],3,[]]

Output:

[[["food",0],["body",3],["population",3],["traits",["fat-tissue","climbing"]]],3]