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 | 29 | 30 |
Tags
- AI 경진대회
- SW Expert Academy
- 프로그래머스 파이썬
- 캐치카페
- leetcode
- gs25
- 코로나19
- dacon
- PYTHON
- Git
- Kaggle
- 파이썬
- 편스토랑 우승상품
- Real or Not? NLP with Disaster Tweets
- 맥북
- hackerrank
- 금융문자분석경진대회
- 자연어처리
- ChatGPT
- programmers
- 백준
- 데이콘
- 우분투
- 더현대서울 맛집
- 프로그래머스
- 편스토랑
- github
- Baekjoon
- Docker
- ubuntu
Archives
- Today
- Total
솜씨좋은장씨
[BaekJoon] 3733번 : Shares (Python) 본문
728x90
반응형

코딩 1일 1문제! 오늘의 문제는 백준의 Shares 입니다.
3733번: Shares
A group of N persons and the ACM Chief Judge share equally a number of S shares (not necessary all of them). Let x be the number of shares aquired by each person (x must be an integer). The problem is to compute the maximum value of x. Write a program that
www.acmicpc.net
👨🏻💻 코드 ( Solution )
def shares(N, S):
return S // (N + 1)
if __name__ == "__main__":
while True:
try:
N, S = map(int, input().split())
print(shares(N, S))
except EOFError:
break
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문제' 카테고리의 다른 글
[BaekJoon] 4493번 : 가위 바위 보? (Python) (2) | 2022.09.04 |
---|---|
[BaekJoon] 24262번 : 알고리즘 수업 - 알고리즘의 수행 시간 1 (Python) (2) | 2022.09.03 |
[BaekJoon] 5361번 : 전투 드로이드 가격 (Pyhton) (0) | 2022.09.01 |
[BaekJoon] 1718번 : 암호 (Python) (0) | 2022.08.30 |
[Programmers] 2022 KAKAO TECH INTERNSHIP - 성격 유형 검사하기 (Python) (0) | 2022.08.30 |