Advertisement
fit_max

Untitled

Dec 15th, 2019
341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. import java.util.Arrays;
  2. import java.util.Scanner;
  3.  
  4. public class JumpAround {
  5. public static void main(String[] args) {
  6. Scanner sc = new Scanner(System.in);
  7. String[] str = sc.nextLine().split(" ");
  8. int n = Integer.parseInt(str[0]);
  9. int m = Integer.parseInt(str[1]);
  10. int jumps = Integer.parseInt(str[2]);
  11. long sumOfnumbers = 0L;
  12. String[] startingPosition = sc.nextLine().split(" ");// row and column
  13. int[][] matrix = new int[n][m];
  14. for (int rows = 0; rows < n; rows++) {
  15. for (int col = 0; col < matrix[rows].length; col++) {
  16. //cannot fill the matrix
  17. }
  18. }
  19. System.out.println(Arrays.deepToString(matrix));
  20. for (int i = 0; i < jumps; i++) {
  21. String[] givenPositionToMove = sc.nextLine().split(" ");
  22.  
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement