[프로그래머스]종이 자르기

박예림·2023년 5월 10일
0

코테

목록 보기
78/132

class Solution {
    public int solution(int M, int N) {
        if(M==1 && N==1) {
            return 0;
        }
        return (M*N)-1;
    }
}
profile
응애 나 아기개발자

0개의 댓글