코딩테스트/프로그래머스 - LV 0
[프로그래머스] qr code
웅드
2024. 1. 31. 13:32
- 풀이
#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;
}
반응형