Problem Solving - Level 1 - 아주 간단한 계산기 https://swexpertacademy.com/main/code/problem/problemDetail.do?problemLevel=1&contestProbId=AV5PjsYKAMIDFAUq&categoryId=AV5PjsYKAMIDFAUq&categoryType=CODE #include using namespace std; int main() { int A,B; cin>>A>>B; cout
코딩테스트 연습 - Level 1 - 하샤드 수 https://programmers.co.kr/learn/courses/30/lessons/12947 #include #include using namespace std; bool solution(int x) { bool answer = true; int sum=0; int num=x; while(num>0) { sum+=num%10; num=num/10; } return x%sum==0?true:false; }
코딩테스트 연습 - Level 1 - 핸드폰 번호 가리기 https://programmers.co.kr/learn/courses/30/lessons/12948 #include #include using namespace std; string solution(string phone_number) { for(int i=0;i
코딩테스트 연습 - Level 1 - 행렬의 덧셈 https://programmers.co.kr/learn/courses/30/lessons/12950 #include #include using namespace std; vector solution(vector arr1, vector arr2) { vector answer; for(int i=0;i
코딩테스트 연습 - Level 1 - x만큼 간격이 있는 n개의 숫자 https://programmers.co.kr/learn/courses/30/lessons/12954 #include #include using namespace std; vector solution(int x, int n) { vector answer; for(int i=1;i
Problem Solving - Level 1 - 간단한 N의 약수 https://swexpertacademy.com/main/code/problem/problemDetail.do?problemLevel=1&contestProbId=AV5PhcWaAKIDFAUq&categoryId=AV5PhcWaAKIDFAUq&categoryType=CODE #include using namespace std; int main() { int N; cin>>N; for(int i=1;i