package com.codegym.task.task07.task0705; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; /* One large array and two small ones */ public class Solution { public static void main(String[] args) throws Exception { //write your code here int[] num1 = new int[20]; Scanner input = new Scanner(System.in); int[] num2 = new int[10]; int[] num3 = new int[10]; for(int i = 0; i < num1.length; i++){ num1[i]= input.nextInt(); } for (int i = 0; i < num1.length; i++){ if (i < num2.length) num2[i] = num1[i]; else num3[i - num2.length] = num1[i]; } } }