본문 바로가기

전체 글245

[프로그래머스] 문자열 반복해서 출력하기(c++) https://school.programmers.co.kr/learn/courses/30/lessons/181950 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 답 #include using namespace std; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); string s; int n; cin>>s>>n; for(int i=0;i 2023. 12. 25.
[프로그래머스] a와 b 출력하기(c++) https://school.programmers.co.kr/learn/courses/30/lessons/181951?language=cpp 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 답 #include using namespace std; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); int a,b; cin>>a>>b; cout 2023. 12. 25.
[프로그래머스] 문자열 출력하기(c++) https://school.programmers.co.kr/learn/courses/30/lessons/181952 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 답 #include using namespace std; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); string s; cin>>s; cout변수이름;//으로 입력받고 cout 2023. 12. 25.
[프로그래머스] 9로 나눈 나머지(c++) https://school.programmers.co.kr/learn/courses/30/lessons/181914 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 답 #include #include using namespace std; int solution(string number) { int answer = 0; for(int i=0;i 2023. 12. 25.
[프로그래머스] 부분 문자열 이어 붙여 문자열 만들기(c++) https://school.programmers.co.kr/learn/courses/30/lessons/181911 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 답 #include #include using namespace std; string solution(vector my_strings, vector parts) { string answer = ""; for(int i=0;i 2023. 12. 25.
[프로그래머스] 수열과 구간 쿼리 3(c++) https://school.programmers.co.kr/learn/courses/30/lessons/181924 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 답 #include #include using namespace std; vector solution(vector arr, vector queries) { int temp=0; for(int i=0;i 2023. 12. 25.