#P2638. 安全系统
安全系统
Description
After Tesla’s six-digit passcode was easily cracked, people began to doubt the security of electric vehicles. Upon hearing this, Li Hua designed his own passcode system:
- Suppose the security system has storage units. Each storage unit can hold up to 2 different types of signals (it may also hold none). There are two types of signals, and , with copies of and copies of available. A single or counts as one signal. We need to store these signals in the storage units. The and signals do not have to be all stored; a storage unit may contain any number of ’s and any number of ’s. Every distinct storage plan, after Li Hua’s processing, will correspond to a distinct passcode.
Given , find the number of possible distinct storage plans.
Input Format
The first line contains 3 integers, .
Output Format
The first line contains an integer, the number of plans.
2 1 1
9
Hint
All 9 plans are as follows:
| Storage unit | Storage unit |
|---|---|
Constraints: For all testdata, , , .
: A new set of Hack testdata was added.
Translated by ChatGPT 5
京公网安备 11011102002149号