public class Main {
private static int n=9,c=0;
private static int[] a={1,2,3,4,5,6,7,8,9};
public static void main(String[] args) {
// TODO Auto-generated method stub
perm(0);
System.out.println(c);
}
private static void perm(int k) {
// TODO Auto-generated method stub
if(k==n){
if(judge()){
c++;
}
return;
}
for(int i=k;i