๋ฐ์ํ
https://level.goorm.io/exam/123421/14%ED%9A%8C-epper-7-%EC%8B%A0%EB%AC%B8-%EA%B8%B0%EC%82%AC/quiz/1
#include <stdio.h> #include <stdlib.h> int main() { int r, c, zr, zc; scanf("%d %d %d %d", &r, &c, &zr, &zc); char answer[r*zr][c*zc]; char words[r][c]; for(int i=0; i<r; i++){ scanf("%s", words[i]); } for(int m=0; m<r; m++){ for(int n=0; n<c; n++){ for(int i=0; i<zr; i++){ for(int j=0; j<zc; j++){ answer[m*zr + i][n*zc + j] = words[m][n]; } } } } for (int i = 0; i < r*zr; i++) { for (int j = 0; j < c*zc; j++) { printf("%c", answer[i][j]); } printf("\n"); } return 0; }
๋ฐ์ํ
'๐ฆ Chango > ๐ฃ EDOC' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
BOJ ๋ฐฑ์ค 16283๋ฒ : Farm (0) | 2021.09.29 |
---|---|
[์๊ฐ][BOJ][C++] ๋ฐฑ์ค 20044๋ฒ: Project Teams (0) | 2021.09.29 |
[๊ตฌ๋ฆ][C++] 10ํ E-PPER 2๋ฒ : OX ํด์ฆ (0) | 2021.09.15 |
[BOJ G5][C++] ๋ฐฑ์ค 14891๋ฒ: ํฑ๋๋ฐํด (0) | 2021.09.08 |
[BOJ][C++] ๋ฐฑ์ค 1074๋ฒ: Z (0) | 2021.09.07 |