1987 - DS_20_CHEN_QUIZ1 (EECS2040) Scoreboard

Time

2020/04/13 18:30:00 2020/04/13 20:30:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
12736 Quiz1 Cargo Truck Problem

12736 - Quiz1 Cargo Truck Problem   

Description

We wants to transport some items using a truck.

Can these items be packed into the truck?
- Do not flip or rotate items
- Items must touch the floor of the truck
- Items must occupy the entire length (without space that allows the items to move forward or backword)

Input

1. Number of items (<10)

2. the "exact" width and height of the item
   - 1st item
   - 2nd item ...
   (The items will be compose of )

3. Number of Truck lengths to check
   - The lengths to check (Repeating is fine)
 

Output

Answer Yes or No for each truck length

Sample Input  Download

Sample Output  Download

Tags




Discuss