Answered step by step
Verified Expert Solution
Question
1 Approved Answer
using Structures c++ and without build-in function Segments compression method Cost: 3 Solved: O Memory limit: 256 Mb Time limit: 1000 ms Input file: stdin
using Structures c++ and without build-in function
Segments compression method Cost: 3 Solved: O Memory limit: 256 Mb Time limit: 1000 ms Input file: stdin Output file: stdout Task: It was chosen to put two new bus routes on different sections (i.e. bus stops) of New Avenue to unload the traffic. Each bus stop is numerated. The first and last stops of each bus are known. Find the quantity of stops where you can change from one bus to another. Input: Four naturals - the numbers of the first and last bus stops: first two refer to the first bus, second two-to the second bus. Each number is not greater than 10% Output: The quantity of bus stops. Example: Input Output 3 6 4 2 2 3 1 5 10Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started