diff --git "a/jaykxo/week01/11382_\352\274\254\353\247\210_\354\240\225\353\257\274.py" "b/jaykxo/week01/11382_\352\274\254\353\247\210_\354\240\225\353\257\274.py" new file mode 100644 index 0000000..80b02f3 --- /dev/null +++ "b/jaykxo/week01/11382_\352\274\254\353\247\210_\354\240\225\353\257\274.py" @@ -0,0 +1,6 @@ +import sys +input = sys.stdin.readline + +A, B, C = map(int, input().split()) + +print(A + B + C) \ No newline at end of file diff --git "a/jaykxo/week01/2438_\353\263\204_\354\260\215\352\270\260 - 1.py" "b/jaykxo/week01/2438_\353\263\204_\354\260\215\352\270\260 - 1.py" new file mode 100644 index 0000000..9b17e30 --- /dev/null +++ "b/jaykxo/week01/2438_\353\263\204_\354\260\215\352\270\260 - 1.py" @@ -0,0 +1,6 @@ +import sys +input = sys.stdin.readline +N = int(input()) + +for i in range(N): + print("*" * (i + 1)) \ No newline at end of file diff --git "a/jaykxo/week02/10798_\354\204\270\353\241\234\354\235\275\352\270\260.py" "b/jaykxo/week02/10798_\354\204\270\353\241\234\354\235\275\352\270\260.py" new file mode 100644 index 0000000..6a57446 --- /dev/null +++ "b/jaykxo/week02/10798_\354\204\270\353\241\234\354\235\275\352\270\260.py" @@ -0,0 +1,21 @@ +import sys +input = sys.stdin.readline + +# 1) 5줄 입력받아 리스트에 저장 +lines = [] +for _ in range(5): + line = input().strip() # 한 줄 입력받고 개행 제거 + lines.append(line) + +# 2) 가장 긴 문자열의 길이 구하기 +max_len = max(len(line) for line in lines) + +# 3) 세로로 읽기: 열을 기준으로 각 줄을 돌며 문자 추가 +result = "" +for c in range(max_len): # 열(column) 기준 + for r in range(len(lines)): # 행(row) 기준 + if c < len(lines[r]): # 해당 줄에 문자가 존재하면 + result += lines[r][c] + +# 4) 결과 문자열 출력 +print(result) \ No newline at end of file diff --git "a/jaykxo/week02/10807_\352\260\234\354\210\230_\354\204\270\352\270\260.py" "b/jaykxo/week02/10807_\352\260\234\354\210\230_\354\204\270\352\270\260.py" new file mode 100644 index 0000000..a8999a5 --- /dev/null +++ "b/jaykxo/week02/10807_\352\260\234\354\210\230_\354\204\270\352\270\260.py" @@ -0,0 +1,14 @@ +import sys +input = sys.stdin.readline + +N = int(input()) # 숫자 개수 입력 받기 +num = list(map(int, input().split())) # 숫자 리스트 입력 받기 +v = int(input()) # 찾을 숫자 입력 받기 + +count = 0 # 찾은 숫자 개수 초기화 + +for i in range(N): + if num[i] == v : # 현재 숫자가 찾는 숫자와 같은지 확인 + count += 1 # 같으면 개수 증가 + +print(count) # 결과 출력 (찾은 숫자의 개수) \ No newline at end of file diff --git a/jaykxo/week02/10952_A+B-5.py b/jaykxo/week02/10952_A+B-5.py new file mode 100644 index 0000000..7fdf9f0 --- /dev/null +++ b/jaykxo/week02/10952_A+B-5.py @@ -0,0 +1,8 @@ +import sys +input = sys.stdin.readline + +while True: + a, b = map(int, input().split()) + if a == 0 and b == 0: # 종료 조건 + break + print(a + b) \ No newline at end of file