Algorithmic ProblemYou are given the arrival and leaving times of n customers in a restaurant.What was the maximum number of customers?InputThe first input line has an integer n: the number of customers.After this, there are n lines that describe the customers. Each line has two integers a and b: the arrival and leaving times of a customer.You may assume that all arrival and leaving times are distinct.OutputPrint one integer: the maximum number of customers.ExampleInput:35 82 43 9Output:2

Algorithmic ProblemYou are given the arrival and leaving times of n customers in a restaurant.What was the maximum number of customers?InputThe first input line has an integer n: the number of customers.After this, there are n lines that describe the customers. Each line has two integers a and b: the arrival and leaving times of a customer.You may assume that all arrival and leaving times are distinct.OutputPrint one integer: the maximum number of customers.ExampleInput:35 82 43 9Output:2

Don't hesitate - Save time and Excel

Are you overwhelmed by an intense schedule and facing difficulties completing this assignment? We at GrandHomework know how to assist students in the most effective and cheap way possible. To be sure of this, place an order and enjoy the best grades that you deserve!

Post Homework
Top