250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Python3
- python
- map
- css
- 파이썬
- YOLOv5
- 데이터
- 프로그래머스
- 파이썬 슬라이싱
- Django
- 백준
- Len
- sql
- Join
- count
- List Comprehension
- ORDER BY
- 슬라이싱
- 단어 공부
- GIT
- 아이엠어바텐더
- 설계
- date_format
- SQL 고득점 Kit
- html
- 코딩테스트 연습
- 프로젝트
- where
- pcce 기출문제
- 파이썬 몫
Archives
- Today
- Total
nan + nan = 2nan
[백준][Python3] #25314. 코딩은 체육과목 입니다 본문
728x90
코드 입력
num = int(input())
word = 'long '
# 4로 나눈 몫을 구함
cnt = num // 4
# 몫만큼 단어를 생성
print(word*cnt + 'int')
출처 : 백준 Online Judge
'Python > 백준 알고리즘' 카테고리의 다른 글
[백준][Python3] #10813. 공 바꾸기 (0) | 2024.02.25 |
---|---|
[백준][Python3] #10810. 공 넣기 (2) | 2024.02.24 |
[백준][Python3] #11382. 꼬마 정민 (0) | 2024.02.22 |
[백준][Python3] #2292. 벌집 (0) | 2023.01.16 |
[백준][Python3] #1712. 손익분기점 (0) | 2023.01.16 |
Comments