for each problem add time and memory item, using loop.cycle variable in jinja2