From f8a0a99461f8860a1e7475c07224397e0e2ed554 Mon Sep 17 00:00:00 2001 From: caucsejunseo Date: Thu, 10 Apr 2025 00:47:06 +0900 Subject: [PATCH 1/4] Update README.md --- caucsejunseo/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/caucsejunseo/README.md b/caucsejunseo/README.md index 2dbd690..f07edb7 100644 --- a/caucsejunseo/README.md +++ b/caucsejunseo/README.md @@ -6,4 +6,5 @@ | 3차시 | 2025.03.26 | 스택 | [좋은단어](https://www.acmicpc.net/problem/3986)|[#12]https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/12| | 4차시 | 2025.03.27 | 스택 | [과제는끝나지않아!](https://www.acmicpc.net/problem/17952)|[#14]https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/14| | 5차시 | 2025.04.02 | 큐 | [요세푸스문제](https://www.acmicpc.net/problem/1158)|[#19]https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/19| -| 6차시 | 2025.04.06 | 큐 | [앵무새](https://www.acmicpc.net/problem/14713)|[#23]https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/23| + | 6차시 | 2025.04.06 | 큐 | [앵무새](https://www.acmicpc.net/problem/14713)|[#23]https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/23| + | 7차시 | 2025.04.10 | 그리디 | [폴리오미노](https://www.acmicpc.net/problem/1343)|[#28]| From a6f51e940bdc8f63c988447da0e3255c54b237c1 Mon Sep 17 00:00:00 2001 From: caucsejunseo Date: Thu, 10 Apr 2025 00:47:11 +0900 Subject: [PATCH 2/4] =?UTF-8?q?Create=202025.04.10.=ED=8F=B4=EB=A6=AC?= =?UTF-8?q?=EC=98=A4=EB=AF=B8=EB=85=B8.c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...254\354\230\244\353\257\270\353\205\270.c" | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 "caucsejunseo/\352\267\270\353\246\254\353\223\234/2025.04.10.\355\217\264\353\246\254\354\230\244\353\257\270\353\205\270.c" diff --git "a/caucsejunseo/\352\267\270\353\246\254\353\223\234/2025.04.10.\355\217\264\353\246\254\354\230\244\353\257\270\353\205\270.c" "b/caucsejunseo/\352\267\270\353\246\254\353\223\234/2025.04.10.\355\217\264\353\246\254\354\230\244\353\257\270\353\205\270.c" new file mode 100644 index 0000000..3d8a2e4 --- /dev/null +++ "b/caucsejunseo/\352\267\270\353\246\254\353\223\234/2025.04.10.\355\217\264\353\246\254\354\230\244\353\257\270\353\205\270.c" @@ -0,0 +1,50 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include + +#define MAX 51 +#define OUTPUT_MAX 500 + +int main() +{ + char str[MAX]; + scanf("%s", str); + + char div[MAX] = { 0 }; + char result[OUTPUT_MAX] = { 0 }; // 결과 저장용 + int res_index = 0; + int i = 0, j = 0; + int len1 = strlen(str); + + for (i = 0; i <= len1; i++) + { + if (str[i] == '.' || str[i] == '\0') + { + int len2 = strlen(div); + + if (len2 % 2 != 0) { + printf("-1\n"); + return 0; // 중간에 오류 발생 시 즉시 종료 + } + + for (int k = 0; k < len2 / 4; k++) + strcat(result, "AAAA"); + for (int k = 0; k < (len2 % 4) / 2; k++) + strcat(result, "BB"); + + if (str[i] == '.') + strcat(result, "."); + + memset(div, 0, sizeof(div)); + j = 0; + } + else + { + div[j++] = str[i]; + } + } + + printf("%s\n", result); // 모든 구간 처리 후 출력 + + return 0; +} From a8539eb62d715795afe971959880ce6e94244d9d Mon Sep 17 00:00:00 2001 From: caucsejunseo Date: Fri, 11 Apr 2025 17:07:41 +0900 Subject: [PATCH 3/4] Update README.md --- caucsejunseo/README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/caucsejunseo/README.md b/caucsejunseo/README.md index 07c974e..e553861 100644 --- a/caucsejunseo/README.md +++ b/caucsejunseo/README.md @@ -1,11 +1,12 @@ ## ✏️ 기록 | 차시 | 날짜 | 문제유형 | 링크 | 풀이 | - | 1차시 | 2025.03.18 | 그리디 | [동전0](https://www.acmicpc.net/problem/11047)|[#4}]https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/4| - | 2차시 | 2025.03.22 | 스택 | [단어뒤집기2](https://www.acmicpc.net/problem/17413)|[#8]https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/8| - | 3차시 | 2025.03.26 | 스택 | [좋은단어](https://www.acmicpc.net/problem/3986)|[#12]https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/12| - | 4차시 | 2025.03.27 | 스택 | [과제는끝나지않아!](https://www.acmicpc.net/problem/17952)|[#14]https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/14| - | 5차시 | 2025.04.02 | 큐 | [요세푸스문제](https://www.acmicpc.net/problem/1158)|[#19]https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/19| - | 6차시 | 2025.04.06 | 큐 | [앵무새](https://www.acmicpc.net/problem/14713)|[#23]https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/23| - | 7차시 | 2025.04.10 | 그리디 | [폴리오미노](https://www.acmicpc.net/problem/1343)|[#28]| - --- \ No newline at end of file + |:----:|:---------:|:----:|:-----:|:----:| + | 1차시 | 2025.03.18 | 그리디 | [동전0](https://www.acmicpc.net/problem/11047)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/4| + | 2차시 | 2025.03.22 | 스택 | [단어뒤집기2](https://www.acmicpc.net/problem/17413)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/8| + | 3차시 | 2025.03.26 | 스택 | [좋은단어](https://www.acmicpc.net/problem/3986)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/12| + | 4차시 | 2025.03.27 | 스택 | [과제는끝나지않아!](https://www.acmicpc.net/problem/17952)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/14| + | 5차시 | 2025.04.02 | 큐 | [요세푸스문제](https://www.acmicpc.net/problem/1158)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/19| + | 6차시 | 2025.04.06 | 큐 | [앵무새](https://www.acmicpc.net/problem/14713)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/23| + | 7차시 | 2025.04.10 | 그리디 | [폴리오미노](https://www.acmicpc.net/problem/1343)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/28| + | 8차시 | 2025.04.11 | 연결리스트| [키로거](https://www.acmicpc.net/problem/5397)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/30/files| \ No newline at end of file From 30c2c0d7ecb584a3c6ba374fa72f9df92ea78d93 Mon Sep 17 00:00:00 2001 From: caucsejunseo Date: Fri, 11 Apr 2025 17:13:37 +0900 Subject: [PATCH 4/4] Update README.md --- caucsejunseo/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caucsejunseo/README.md b/caucsejunseo/README.md index e553861..5bea20c 100644 --- a/caucsejunseo/README.md +++ b/caucsejunseo/README.md @@ -9,4 +9,4 @@ | 5차시 | 2025.04.02 | 큐 | [요세푸스문제](https://www.acmicpc.net/problem/1158)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/19| | 6차시 | 2025.04.06 | 큐 | [앵무새](https://www.acmicpc.net/problem/14713)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/23| | 7차시 | 2025.04.10 | 그리디 | [폴리오미노](https://www.acmicpc.net/problem/1343)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/28| - | 8차시 | 2025.04.11 | 연결리스트| [키로거](https://www.acmicpc.net/problem/5397)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/30/files| \ No newline at end of file +| 8차시 | 2025.04.11 | 연결리스트| [키로거](https://www.acmicpc.net/problem/5397)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/30| \ No newline at end of file