2738 자바

    백준 2738 (행렬 덧셈)

    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 import java.util.Scanner; public class baekjoon_2738 { // 행렬 덧셈 public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int M = scan.nextInt(); // N * M 크기의 행렬 생성 int sum[][] = new int[N][M]; // N * M의 행렬의 각각 원소 값을 두 번씩 입력 받아 더한다. for(int i=0; i