99클럽 코테 스터디 10일차 TIL + 병든 나이트

·
카테고리 없음
https://www.acmicpc.net/problem/1783 - 오늘의 학습 키워드병든 나이트- 풀이import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); // 세로 int M = sc.nextInt(); // 가로 int result = 0; if (N == 1) { // 세로가 1칸 → 못 움직임 result = 1; } else if (N == 2) { ..