Skip to content

Commit

Permalink
siolve(BOJ): B3_GIST 찍기_c
Browse files Browse the repository at this point in the history
# id: 문제 id를 숫자로 작성
# categories : 해당 문제의 유형을 ,로 구분하여 작성
# tags : 해당 문제의 태그를 ,로 구분하여 작성
# time : 해당 문제 풀이에 걸린 시간을 분단위 숫자로 작성
# try : 해당 문제에 몇번의 시도를 했는지 숫자로 작성
# help: 해당 문제에 외부의 도움을 받았는지 true/false로 작성
# url : 해당 문제의 url을 작성
id: 31907
categories: []
tags: []
time:
try:
help: false
url:
  • Loading branch information
gogumaC committed Nov 22, 2024
1 parent f5fb3e8 commit 48cdb8e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/algorithmProblems/boj/B3_31907_GIST_ 찍기.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#include <stdio.h>
#include <math.h>

int M = 4; int N = 3;
char *original[] =
{
"G...",
".I.T",
"..S."
};

int main(){
int K;
scanf("%d",&K);

for (int i = 0; i < K*N; i++){
int r = (i+K)/K - 1;
for (int j = 0; j < K*M; j++){
int c = (j+K)/K - 1;
printf("%c",original[r][c]);
}
printf("\n");
}

return 0;
}

0 comments on commit 48cdb8e

Please sign in to comment.