• + 1 comment

    import java.io.; import java.util.;

    public class Solution {

    public static void main(String[] args) {
        /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
        Scanner scn=new Scanner(System.in);
    
        int t=scn.nextInt();
       //scn.nextLine();
        for(int j=0;j<=t;j++){
        String s=scn.next();
        String even="";
        String odd="";
        for(int i=0;i<s.length();i++){
            if(i%t==0){
                even+=s.charAt(i);
                //System.out.println(even);
                }
            else {
             odd+=s.charAt(i);}//System.out.println(even+" "+odd);
        }
                         System.out.println(even+" "+odd);      any one check this code i got a reun time expectation i go
    
        }
    
        }
    

    }