Question: use c++ use the data structure and linked list do not use the library function A queue Cost: 3 Solved: 0 Memory limit: 256 Mb

use c++

use the data structure and linked list

do not use the library function

use c++ use the data structure and linked list do not use

A queue Cost: 3 Solved: 0 Memory limit: 256 Mb Time limit: 1000 ms Input file: stdin Output file: stdout Task: Civil countries usually have k ticket windows on a railway station but there's only one waiting queue. The service works in such a way: initially, when all ticket windows are free, the first k people from the queue take their places at windows; all other people wait for their turn. As soon as a client gets served, the window calls for another client, the first one from the queue. This continues until all people are served. Find the minimal time needed to serve all clients. Input: The first line contains two integers n and K (1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!