Question: Otomeyt, Recent Online Assessment Questions | The Strange Parking Lot | 2026 | OA
0
Entering edit mode

Problem Statement: The strange parking lot

In the city of Merzbow, there is a strange parking lot where two autos (A) should be parked between two cars (C), and a bike (B) should be parked between two autos. The parking pattern strictly follows:

C A B A C A B A C ...

You are given the following vehicle capacities:

  • Each car can accommodate 5 passengers.
  • Each auto can accommodate 3 passengers.
  • Each bike can accommodate 2 passengers.

The parking lot is a straight line that is completely full, and cars are parked at both ends of the lot.

Determine:

  1. The total number of vehicles in the parking lot.
  2. The total number of passengers who can be seated in all the vehicles.

Input Format:

  • A single positive integer N denoting the number of cars in the parking lot.

Output Format:

  • First line: A positive integer representing the total number of vehicles.
  • Second line: A positive integer representing the total number of passengers.

Example:

Input:

4

Output:

13

44

Login before adding your answer.

Similar Posts
Loading Similar Posts