| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- markdown
- Python
- codesingal
- data_structure
- 백준
- Numpy
- recursion
- codesignal
- almostIncreasingSequence
- adjacentElementsProduct
- 2750
- 파이썬 포렌식
- 파이썬머신러닝완벽가이드
- centuryFromYear
- 10953
- til
- C++
- collections.deque
- baekjun
- cpp
- Daily Commit
- 피보나치 수
- flask
- Counting cells in a blob
- 2015 봄학기 알고리즘
- 수 정렬하기
- matrixElementsSum
- shapeArea
- All Longest Strings
- Sequential Search
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