diff --git a/백준/Bronze/26590. Word Mix/README.md b/백준/Bronze/26590. Word Mix/README.md new file mode 100644 index 0000000..31e2d94 --- /dev/null +++ b/백준/Bronze/26590. Word Mix/README.md @@ -0,0 +1,28 @@ +# [Bronze II] Word Mix - 26590 + +[문제 링크](https://www.acmicpc.net/problem/26590) + +### 성능 요약 + +메모리: 32412 KB, 시간: 32 ms + +### 분류 + +구현, 문자열 + +### 제출 일자 + +2025년 3월 24일 20:51:18 + +### 문제 설명 + +
Write a program that will combine two words into a new one. The length of the two words will be unknown. The new word will be the same length as the shorter word. The letters at even indexes will be taken from the first word at the corresponding indexes and the letters at odd indexes will be taken from the second word at the corresponding indexes.
+ +### 입력 + +The input will contain two words on a single line, separated by a single space.
+ +### 출력 + +Display the mixed word.
+ diff --git a/백준/Bronze/26590. Word Mix/Word Mix.py b/백준/Bronze/26590. Word Mix/Word Mix.py new file mode 100644 index 0000000..7200830 --- /dev/null +++ b/백준/Bronze/26590. Word Mix/Word Mix.py @@ -0,0 +1,14 @@ +import sys + +word1, word2 = sys.stdin.readline().strip().split() + +min_len = min(len(word1), len(word2)) +result = [] + +for i in range(min_len): + if i % 2 == 0: + result.append(word1[i]) + else: + result.append(word2[i]) + +print(''.join(result))