Algorithm/SW Expert Academy
2043. 서랍의 비밀번호
히욤이
2019. 3. 5. 20:53
SW Expert 2043. 서랍의 비밀번호
* 문제의 저작권은 SW Expert에 있습니다
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Solution { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; st = new StringTokenizer(br.readLine()); int P = Integer.parseInt(st.nextToken()); int K = Integer.parseInt(st.nextToken()); System.out.println(P-K+1); } } | cs |