Untitled

mail@pastecode.io avatar
unknown
java
3 years ago
856 B
1
Indexable
Never
    import java.io.*;
import java.lang.*;
    import java.nio.charset.StandardCharsets;
    import java.util.Scanner;

    public class Main {

        public static void main(String[] args) {
            try {
                int n;
                Scanner sc = new Scanner(System.in);
                n = sc.nextInt();
                int[] a = new int[n + 1];
                System.out.write(n);
                System.out.println("hello");
                for(int i = 0; i < n; i++) {
                    a[i] = System.in.read();
                }
                for(int i = 0; i < n / 2; i++) {
                    System.out.write(a[i]);
                }


            }
            catch (IOException ex) {
                System.out.println(ex);
            }
            finally {

            }
            System.out.flush();
        }
    }