package DAY02.P1806; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.util.Scanner; public class Main { public static int N; public static int S; public static int[] array; public static void main(String[] args) throws FileNotFoundException { System.setIn(new FileInputStream("src/DAY02/P1806/input.txt")); Scanner scanner = new Scanner(System.in); N = scanner.next..