chieesnddafo

mail@pastecode.io avatar
unknown
plain_text
2 years ago
1.1 kB
1
Indexable
Never
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
public class Main{
    public static void main(String[] arg) {
        
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();

        String[] arr = new String[t];

        for(int i=0;i<t;i++){
            int[] a = new int[sc.nextInt()];
            for(int j=0;j<a.length;j++){
                a[j] = sc.nextInt();
            }
            arr[i] = so(a);
        }
        for(int i=0;i<t;i++){
            System.out.println(arr[i]);
        }


    }
    //9,5,34,3,30
    // larger than 9 : 34 30
    // smaller than 9 : 9: 9,5,3

    public static String so(int[] arr){
        int numberLargerThanNine = 0;
        for(int i=0;i<arr.length;i++){
            if(arr[i]>9){
                numberLargerThanNine++;
            }
        }
        
        int[] a = new int[numberLargerThanNine];
        int[] b = new int[arr.length-numberLargerThanNine]
        
        







        return "";
    }
}