백준알고리즘 2163번 초콜릿 자르기
백준알고리즘 https://www.acmicpc.net/problem/2163 너무 쉬운 문제기저식 : (M * N) - 1import java.util.Scanner; public class Main { static int[][] resultArray = null; public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int M = Integer.parseInt(scan.nextLine().trim()); System.out.println((M * N) - 1); scan.close(); } }