문제 링크 : https://www.swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV5QJ_8KAx8DFAUq
문제의 저작권은 SW Expert Academy에 있습니다.
#include <iostream> using namespace std; int main(void) { int P, K; cin >> P >> K; cout << P - K + 1 << "\n"; return 0; } | cs |
'C & C++ > SW Expert Academy' 카테고리의 다른 글
SWEA 2027 - 대각선 출력하기 (1) | 2018.04.27 |
---|---|
SWEA 2029 - 몫과 나머지 출력하기 (0) | 2018.04.27 |
SWEA 2046 - 스탬프 찍기 (0) | 2018.04.27 |
SWEA 2047 - 신문 헤드라인 (0) | 2018.04.27 |
SWEA 2050 - 알파벳을 숫자로 변환 (0) | 2018.04.27 |