Reduce Time complexity of the following program
问题 import java.util.Scanner; class Special_Pairs{ private static Scanner scan; public static void main(String [] args) { byte t; int n; scan = new Scanner(System.in); t=scan.nextByte(); int[] a=new int[100000]; while(t>0) { int i,j,count=0; n=scan.nextInt(); for(i=0;i<n;i++) { a[i]=scan.nextInt(); } for(i=0;i<n;i++) { for(j=0;j<n;j++) { if(((a[i]&a[j])==0)||((a[j]&a[i])==0)) { count++; } } } t--; System.out.println(count); } } } Help me reduce time complexity of this program Question : You have