link of question-“https://hack.codingblocks.com/app/practice/3/p/2355”
Can u Explain the input output of this que
@Ayusinha You have to minimize the total number of pairs;
Consider the sample case:
10 3
There are 10 workers and 3 groups.
In order to minimize the total pairs:
1st group will have 3 workers
2nd group will have 3 workers
3rd group will have 4 workers
So, total pairs= 3C2 + 3C2 + 4C2= 12
So, Expected Output:
12
Hope this helps 
i’ve done as you said but my code only runs on one testcase , what is wrong -“https://ide.codingblocks.com/s/121706”