==== 0. ĂšLOHA ==== Limit: 10s package pal0; import java.io.BufferedInputStream; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(new BufferedInputStream(System.in)); int inputInt; int max = Integer.MIN_VALUE; int length = 0; String output = new String(); int count = scanner.nextInt(); for (int i = 0; i < count; i++) { inputInt = scanner.nextInt(); if ((inputInt > max)) max = inputInt; } int count2 = scanner.nextInt(); for (int i = 0; i < count2; i++) { inputInt = scanner.nextInt(); if (inputInt > max) { ++length; output += inputInt + System.getProperty("line.separator"); } } System.out.println(length); System.out.print(output); scanner.close(); }}