사생활 보호 설정
https://gamjia.tistory.com
Updated News
Mini Rooms
답글수 [0]
What Friends Say
한마디로 표현해봐~
1촌평 관리
2675번 문자열 반복
GamJia 2023. 3. 27. 09:13
단계별로 풀어보기 - 문자열 - 4단계
https://www.acmicpc.net/problem/2675
#include <iostream> using namespace std; int main() { int T; cin>>T; for(int i=0;i<T;i++) { int R; cin>>R; string S; cin>>S; for(int j=0;j<S.length();j++) { for(int k=0;k<R;k++) { cout<<S.at(j); } } cout<<endl; } return 0; }