Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 백준
- 파이썬
- 우분투
- 편스토랑 우승상품
- 금융문자분석경진대회
- ubuntu
- PYTHON
- 데이콘
- SW Expert Academy
- leetcode
- Git
- Real or Not? NLP with Disaster Tweets
- Baekjoon
- programmers
- hackerrank
- 맥북
- 자연어처리
- 더현대서울 맛집
- 편스토랑
- 프로그래머스 파이썬
- Docker
- ChatGPT
- gs25
- 프로그래머스
- 캐치카페
- AI 경진대회
- 코로나19
- dacon
- github
- Kaggle
Archives
- Today
- Total
솜씨좋은장씨
[BaekJoon] 26561번 : Population (Python) 본문
728x90
반응형
코딩 1일 1문제! 오늘의 문제는 백준의 Population 입니다.
26561번: Population
The first line of input will contain a single integer n that indicates the number of lines to follow. Each line will consist of two integers, p and t, where p is the beginning population, and t is the amount of time that will pass. Both p and t will be bet
www.acmicpc.net
👨🏻💻 코드 ( Solution )
def population(begin_num, time):
plus_num = time // 4
minus_num = time // 7
return begin_num + plus_num - minus_num
if __name__ == "__main__":
for _ in range(int(input())):
begin_num, time = map(int, input().split())
print(population(begin_num=begin_num, time=time))
GitHub - SOMJANG/CODINGTEST_PRACTICE: 1일 1문제 since 2020.02.07
1일 1문제 since 2020.02.07. Contribute to SOMJANG/CODINGTEST_PRACTICE development by creating an account on GitHub.
github.com
'Programming > 코딩 1일 1문제' 카테고리의 다른 글
[Programmers] 2023 KAKAO BLIND RECRUITMENT - 개인정보 수집 유효기간 (Python) (0) | 2023.01.26 |
---|---|
[BaekJoon] 23809번 : 골뱅이 찍기 - 돌아간 ㅈ (Python) (1) | 2023.01.25 |
[BaekJoon] 23810번 : 골뱅이 찍기 - ㅋ (Python) (0) | 2023.01.23 |
[BaekJoon] 23811번 : 골뱅이 찍기 - ㅌ (Python) (0) | 2023.01.22 |
[BaekJoon] 4072번 : Words (Python) (0) | 2023.01.21 |
Comments