Programming Language(61)
-
[Programmers]JadenCase 문자열 만들기
https://school.programmers.co.kr/learn/courses/30/lessons/12951 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr #include #include using namespace std; string solution(string s) { string answer = ""; int check = 0; for(int i = 0; i= 97 && s[i] = 48 && s[i] = 65 && s[i]
2023.09.25 -
[Programmers]하샤드 수
https://school.programmers.co.kr/learn/courses/30/lessons/12947 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr #include #include using namespace std; bool solution(int x) { int check = 0; int num = x; bool answer; while(num>0){ check += num % 10; num /= 10; if(10 > num){ check += num; break; } } if(x % check == 0) answer = true; els..
2023.09.25 -
[Programmers]최댓값과 최솟값
https://school.programmers.co.kr/learn/courses/30/lessons/12939 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr #include #include #include #include using namespace std; string solution(string s) { istringstream iss(s); int number; int min_val = INT_MAX; int max_val = INT_MIN; while(iss >> number){ min_val = min(min_val, number); max_..
2023.09.25 -
[Programmers]자연수 뒤집어 배열로 만들기
https://school.programmers.co.kr/learn/courses/30/lessons/12932 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr #include #include using namespace std; vector solution(long long n) { vector answer; while(n > 0){ answer.push_back(n%10); n /= 10; } return answer; }
2023.09.25 -
[Programmers]문자열을 정수로 바꾸기
https://school.programmers.co.kr/learn/courses/30/lessons/12925 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr #include #include using namespace std; int solution(string s) { int answer = stoi(s); return answer; }
2023.09.25 -
[Programmers]문자열을 정수로 바꾸기
https://school.programmers.co.kr/learn/courses/30/lessons/12925 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr #include #include #include using namespace std; int solution(string s) { int answer = stoll(s); return answer; }
2023.09.25