#include #include #include #include #include #include #include long int countArray(int n, int k, int x) { // Return the number of ways to fill in the array. long int a[n],i,p=0; for(i=0;i