#include using namespace std; const int mod=1000000007; int cas,n,a[15]; inline int ksm(int x,int n) { int ret=1; while (n) { if (n&1) ret=1ll*ret*x%mod; n>>=1; x=1ll*x*x%mod; } return ret; } inline int solve(int a,int b) { int tmp=0,tot=ksm(2*b,mod-2); for (int i=0;i<2*b;++i) for (int j=0;j=b&&l