Bomb Kirby Running
Cat Life - GT-K
2043번 서랍의 비밀번호

2023. 3. 17. 09:04SWEA

Problem Solving - Level 1 - 서랍의 비밀번호

https://swexpertacademy.com/main/code/problem/problemDetail.do?problemLevel=1&contestProbId=AV5QJ_8KAx8DFAUq&categoryId=AV5QJ_8KAx8DFAUq&categoryType=CODE

#include <iostream>
using namespace std;
int main()
{
    int N,K,sum=0;
    cin>>N>>K;
     
    for(int i=K;i<=N;i++)
    {
       sum++;
    }
     
    cout<<sum;
    return 0;
}

'SWEA' 카테고리의 다른 글

2047번 신문 헤드라인  (0) 2023.03.20
2046번 스탬프 찍기  (0) 2023.03.17
2029번 몫과 나머지 출력하기  (0) 2023.03.17
2027번 대각선 출력하기  (0) 2023.03.17
2025번 N줄 덧셈  (0) 2023.03.17