종이 자르기

김세호·2022년 12월 7일
0

내 풀이

class Solution {
    public int solution(int M, int N) {
        int answer = 0;
        answer =(M-1)+(N-1)*M;
        return answer;
    }
}

0개의 댓글