#include <string>
#include <vector>
using namespace std;
int solution(int num1, int num2) {
int answer = 0;
if((num1>= -50000)&&(num1<=50000) &&
(num2>=-50000)&&(num2<=50000))
answer = num1 - num2;
return answer;
}
'밥벌이 > 코딩테스트' 카테고리의 다른 글
프로그래머스 문자열 뒤집기(6/100) (0) | 2022.12.12 |
---|---|
프로그래머스 배열 원소 길이(5/100) (0) | 2022.12.12 |
프로그래머스 피자 나눠 먹기(나누기) (4/100) (0) | 2022.12.12 |
프로그래머스 범위기반 for문 (3/100) (0) | 2022.12.05 |
프로그래머스 배열뒤집기(2/100) (0) | 2022.12.05 |