웅재의 코딩세상
[프로그래머스] qr code 본문
- 풀이
#include <string>
#include <vector>
using namespace std;
string solution(int q, int r, string code) {
string answer = "";
for(int i=r; i<code.size(); i+=q){
answer += code[i];
}
return answer;
}
반응형
'코딩테스트 > 프로그래머스 - LV 0' 카테고리의 다른 글
[프로그래머스] 글자 지우기 (0) | 2024.01.31 |
---|---|
[프로그래머스] 문자 개수 세기 (0) | 2024.01.31 |
[프로그래머스] 세로 읽기 (0) | 2024.01.31 |
[프로그래머스] 문자열 뒤집기 (0) | 2024.01.31 |
[프로그래머스] 특정한 문자를 대문자로 바꾸기 (0) | 2024.01.30 |