vov44k

II способ

Nov 28th, 2021 (edited)
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.21 KB | None | 0 0
  1.         int[] tempArray = new int[r];
  2.         System.arraycopy(a, 0, tempArray, 0, r);
  3.  
  4.  
  5.         for (int i = 0; i < n-r; i++){
  6.             a[i] = a[i+r];
  7.         }
  8.  
  9.         System.arraycopy(tempArray, 0, a, n-r, r);
Add Comment
Please, Sign In to add comment