Untitled
unknown
java
5 years ago
856 B
10
Indexable
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();
}
}
Editor is loading...