Find Jobs
Hire Freelancers

Arrays for Minimize Wait Time

max $5 USD

In Progress
Posted over 19 years ago

max $5 USD

Paid on delivery
**Objective is to minimize the wait time in a store as follows: -A wait customer and even a newly arriving customer can be directed to the checkout regardless of her current position in the waiting queue. -A customer can be returned to the queue part way through being served at the checkout. When that customer later returns to the checkout only the remaining time to complete her checkout procedure is required. -No extra time is required to pick a customer from the queue or to put a customer back onto the queue. INPUT FORMAT The first line contains the number of scenarios you will be given. Each scenario begins with an integer n which is the number of customers where 1_<_*n*_<_400. Then the next *n* lines contain the information for customers labelled 1 to *n*. Each of these lines contains two numbers *i* and *j* separated by a single space, where 0_<_*i*_<_36000 and 1_<_*j*_<_600, with the following meaning: -*i* represents the time the customer arrives at the checkout with her load of shopping, this given as the number of seconds from the time the shop opened. -*j* represents the time required to scan and pay for her shopping. SAMPLE 3 4 2000 500 200 300 1500 200 2300 400 4 100 100 100 100 100 200 100 200 3 100 500 100 100 200 100 OUTPUT FORMAT For each scenario output a line consisting of the number of customers and the minimum total waiting time in seconds, separated by a single space. SAMPLE 4 200 4 700 3 200 ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables): a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). ## Platform Windows/ C++ VS 6 **Need arrays not vectors*** Also need right away. Thanks
Project ID: 3470729

About the project

Remote project
Active 19 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

About the client

Flag of UNITED STATES
United States
4.8
14
Member since Feb 24, 2004

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.