일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- Sequential Search
- cpp
- adjacentElementsProduct
- 수 정렬하기
- 10953
- 피보나치 수
- baekjun
- C++
- 2750
- Counting cells in a blob
- markdown
- data_structure
- 파이썬머신러닝완벽가이드
- Daily Commit
- collections.deque
- 2015 봄학기 알고리즘
- recursion
- Python
- centuryFromYear
- 백준
- 파이썬 포렌식
- flask
- Numpy
- til
- almostIncreasingSequence
- codesingal
- codesignal
- shapeArea
- All Longest Strings
- matrixElementsSum
Archives
- Today
- Total
Introfor
[백준] 2675번 문자열 반복 본문
반복 횟수를 입력 받고, 입력 받은 문자 출력 횟수와 문자열을 분리한 뒤 반복횟수 만큼 문자를 출력해준다.
1 2 3 4 5 6 7 8 9 10 11 | def solve(): T = int(input()) for i in range(T): R, S = input().split() for j in S: print(j*int(R), end='') print() return solve() | cs |
'Programming_prob > BaekJoon' 카테고리의 다른 글
[백준] 1152번 단어의 개수 (0) | 2020.10.06 |
---|---|
[백준] 1157번 단어 공부 (0) | 2020.10.06 |
[백준] 10809번 알파벳 찾기 (0) | 2020.10.05 |
[백준] 1065번 한수 (0) | 2020.10.05 |
[백준] 4673번 셀프 넘버 (0) | 2020.10.03 |
Comments