-->
当前位置:首页 > 题库

PROGRAMMING:Personnel dispatch

Luz5年前 (2021-05-10)题库402
A task needs to be completed by five people a, B, C, D and E, but the personnel are limited by the following conditions:
(1) If a goes, B follows.
(2) Either D or e will go.
(3) One of B and C must go, but only one.
(4) C and d both go or neither.
(5) If e goes, then a and B go.
How many dispatch plans are there? Use programming to solve this problem.
###Input format:
nothing
###Output format:
Each person is represented by a, B, C, D and E. output all dispatch combinations meeting the requirements of the problem, one dispatch per line.
###Input example:
```in
```
###Output example:
```out
1 : C D
2 : A B E
```







answer:If there is no answer, please comment