Candidate | Softeer Assessment UI
softeer.ai
나의 풀이
import sys
input=sys.stdin.readline
hubo_ct=int(input())
result = ''
def solution(infomation):
answer=''
five_count=infomation//5
no_five_count=infomation%5
for _ in range(five_count):
answer+='++++'
answer+=' '
for _ in range(no_five_count):
answer+='|'
answer=answer.lstrip()
return answer
for _ in range(hubo_ct):
result=solution(int(input()))
print(result)'코딩테스트 파이썬 > 파이썬 프로그래머스 1단계' 카테고리의 다른 글
| Softeer 연습문제(1단계) - 주행거리 비교하기 (1) | 2024.06.23 |
|---|---|
| Softeer 연습문제(1단계) - 위험한 효도 (0) | 2024.06.23 |
| Softeer 연습문제(1단계) - 근무시간 (0) | 2024.06.23 |
| [PCCP 기출문제] 1번 / 붕대 감기 (0) | 2024.01.06 |
| 가장 많이 받은 선물 (0) | 2024.01.06 |