Hard
As They Complete
Lines
name delay_ms until END (all delays different). Use asyncio.as_completed to print K. NAME as each finishes, K counting from 1.Input
Lines, then END.
Output
Numbered lines.
Sample 1
Input
a 30 b 10 c 20 END
Output
1. b 2. c 3. a
Sample 2
Input
x 5 END
Output
1. x
Output appears here