Java/SWEA
[JAVA] SWEA 2043. 서랍의 비밀번호
쥬크버그
2024. 5. 1. 17:46
SW Expert Academy
SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요!
swexpertacademy.com
정답
import java.util.Scanner;
class Solution
{
public static void main(String args[]) throws Exception
{
Scanner sc = new Scanner(System.in);
int P = sc.nextInt();
int K = sc.nextInt();
System.out.println(P-K+1);
}
}