大佬们,能帮我看一下这个对吗?(第一道笔试题,视力表) public static void main(String[] args){ Scanner scanner=new Scanner(System.in); int[] a=new int[5]; while(scanner.hasNext()){ for(int i=0;i<5;i++){ a[i]=scanner.nextInt(); } int res=Find(a); System.out.println(res); } } public static int Find(int[] a){ int n=a[0]*a[0]; int sum=1; for(int i=1;i<5;i++){ if(a[i]!=0){ sum=sum*Count(n,a[i]); n=n-a[i]; } } return sum; } public static int Count(int n,int k){ int sum=n; int a1=1; int b1=1; for(int i=sum;i>sum-k;i--){ a1=a1*i; } for(int j=1;j<=k;j++){ b1=b1*j; } int res=a1/b1; return res; }