Loading [MathJax]/jax/output/HTML-CSS/config.js
  • 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 (832)
    • 📈 Algorithm
      • Recap (4)
      • LeetCode (116)
      • HackerRank (130)
      • Codeforces (43)
      • Programmers (88)
      • Baekjoon (153)
      • Inflearn (2)
    • 📒 Issue
      • Project (23)
    • 🧑🏻‍💻 Programming
      • DevOps (3)
      • Java (14)
      • Spring (21)
      • Vue (1)
      • React (1)
    • 🖥️ Computer Science
      • Network (7)
      • Database (10)
      • Data Structure (13)
    • 🍀 CodeSquad
      • Today I Learned (197)

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

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

    On this page

    • Solution
    • Reference


    SolutionPermalink

    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

    [Devops] 맥북(MacOS)을 EC2 서버처럼 써보자! - Cloudflare, DNS

    Published: 2025-06-24
    Updated: 2025-06-24

    devops, cloudflare

    [Project] Vite React 환경에서 이미지 컴포넌트 로딩 최적화 방법

    Published: 2025-05-09
    Updated: 2025-05-12

    movlit, vite, react, image, loading

    [React] Node.js와 npm 설치 후 Vite React 개발 서버 실행 방법

    Published: 2025-05-08
    Updated: 2025-05-08

    react, vite, node, npm

    [Project] Spring Security 환경에서 OAuth 2.0 로그인 구현 방법 (백엔드 시점)

    Published: 2025-04-29
    Updated: 2025-05-06

    movlit, spring, spring-boot, spring-security, oauth