• Skip to primary navigation
  • Skip to content
  • Skip to footer
Dev Battery Dev Battery Keep your battery charged
    Wonjun Jeong

    Wonjun Jeong

    Backend Developer

    • Korea Republic
    • Email
    • GitHub
  • All Posts (836)
    • 🍀 Diary
      • Today I Learned (199)
    • 📈 Algorithm
      • Recap (4)
      • LeetCode (116)
      • HackerRank (130)
      • Codeforces (43)
      • Programmers (88)
      • Baekjoon (153)
      • Inflearn (2)
    • 📒 Issue
      • Project (23)
    • 🧑🏻‍💻 Programming
      • DevOps (3)
      • Java (15)
      • Spring (21)
      • FastAPI (0)
      • Vue (1)
      • React (2)
    • 🖥️ Computer Science
      • Network (7)
      • Database (10)
      • Data Structure (13)

    [BaekJoon] 2675번: 문자열 반복 (Python)

    Published: 2023-03-29
    Updated: 2023-03-29

    On this page

    • Solution
    • Reference


    Solution

    answer = ''
    T = int(input())
    
    for _ in range(T):
        R, P = input().split()
        R = int(R)
    
        # R번 더해줘야 하니
        for p in P:
            answer += p * R
    
        print(answer)
    
        # 다음 출력을 위해 초기화
        answer = ''
    

    Tags: implementation, python, stirng

    Categories: Baekjoon

    Published: 2023-03-29
    Updated: 2023-03-29

    Previous Next

    Leave a comment

    You may also enjoy

    [TIL] 신입 개발자 입사 1일차

    Published: 2025-12-18
    Updated: 2025-12-18

    company

    [TIL] 신입 개발자 입사 0일차 - 앞으로의 계획

    Published: 2025-12-17
    Updated: 2025-12-17

    company

    [React] WebStorm에서 VSCode처럼 Prettier 적용

    Published: 2025-09-19
    Updated: 2025-09-19

    webstorm, prettier

    [Devops] AWS의 Auto Scaling으로 Scale-out 하여 서버 분산하여 배포

    Published: 2025-08-25
    Updated: 2025-08-31

    devops, aws, auto-scaling, serverless