Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Solution
- {
- public static void main(String[] args) throws Exception
- {
- int[] bMas = new int[20];
- int[] lMas = new int[10];
- int[] lMas2 = new int[10];
- Scanner in = new Scanner(System.in);
- for(int i = 0; i < bMas.length; i++)
- {
- bMas[i] = in.nextInt();
- }
- // 0 10
- for(int i = 0; i < 10; i++)
- {
- lMas[10 - i] = bMas[10];
- }
- //10 20
- for(int i = 10; i < bMas.length; i++)
- {
- lMas2[10 - i] = bMas[20];
- //Here he must outprint hes vallue
- System.out.println(lMas2[i]);
- }
- }
- }
- lMas[] = Arrays.copyOfRange(bMas, 0, 10);
- lMas2[] = Arrays.copyOfRange(bMas, 10, 20);
- for(int i = 0; i < 10; i++)
- {
- lMas[10 - i] = bMas[10];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement