๐Ÿ“ฆ Chango/๐Ÿฃ EDOC

[๊ตฌ๋ฆ„][C++] 14ํšŒ E-PPER 7๋ฒˆ : ์‹ ๋ฌธ๊ธฐ์‚ฌ

์„ ๋‹ฌ 2021. 9. 27. 23:52
๋ฐ˜์‘ํ˜•

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

 

๊ตฌ๋ฆ„LEVEL

์ฝ”๋”ฉํ…Œ์ŠคํŠธ์—์„œ ๊ฐ€์žฅ ๋†’์€ ๋น„์ค‘์„ ์ฐจ์ง€ํ•˜๋Š” ์•Œ๊ณ ๋ฆฌ์ฆ˜ ๋ฌธ์ œ๋ฅผ ์ œ์ž‘ํ•˜๊ณ  ํ’€์ดํ•  ์ˆ˜ ์žˆ๋Š” ์˜จ๋ผ์ธ ์ €์ง€ ์„œ๋น„์Šค์ž…๋‹ˆ๋‹ค. ๊ธฐ์—…์—์„œ ์„ ํ˜ธํ•˜๋Š” C, C++, ํŒŒ์ด์ฌ(Python), ์ž๋ฐ”(Java), ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ(Javascript) ์ด

level.goorm.io

 

#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; }
๋ฐ˜์‘ํ˜•