1. Checkout the repo and use master brunch
2. Choose Main class and push Run (required java 11 or later version)
3. Follow steps in a terminal
Other variant you can run with gradle (should be installed)
./gradlew run
- Better IDE IDEA
- Java 11 or later
Input number of machines (example: 6):
6
Input powers of machines (example: 1 2 4 10 5 6):
1 2 4 10 5 6
Input num of chipset for producing (example: 11):
11
Nr solutions=4
1 10
2 4 5
1 4 6
5 6
Waste=0
O(2^n), where n - num of machines