자동차 주차
InterviewTime limit1sMemory limit1024 MB
Count the distinct ways to arrange A red, B green, and C blue cars in N parking spaces, where cars of the same color are indistinguishable.
- Level
Easy3 of 10
- Topics
- Combinatorics, Math
- Solved
- No attempts yet
문제
Park red cars, green cars, and blue cars in a parking lot with spaces, one car per space. All cars are the same model and differ only in color.
Find the number of ways all cars can be parked, one car per space.
입력
The first line contains positive integers , , , and , separated by spaces.
출력
Print the answer on the first line.