Task Manager

Input

The input will consist of two lines The first line contains the names of the problems The second line contains integers with the time needed to evaluate the problem. Each number corresponds to a unique problem.

> Both lines must have the same size

Output

The output should be a list of problems sorted by priority with the time they had to wait and the total time waited.

> NOTE: in case two problems have the same priority, sort in the order they were read from input.

Problem information

Author: HP CodeWars

Generation: 2026-01-25T16:05:45.862Z

© Jutge.org, 2006–2026.
https://jutge.org