Problem I
k-Colouring of a Graph
You are given a simple graph with
Recall that a simple graph is an undirected graph with no
self loops and no repeated edges. A
Input
The first line of input consists of four integers,
Output
Output the number of
Sample Input 1 | Sample Output 1 |
---|---|
3 3 2 10000 1 2 2 3 3 1 |
0 |
Sample Input 2 | Sample Output 2 |
---|---|
3 3 4 13 1 2 2 3 3 1 |
11 |