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 |
Tags
- 수학
- writeup
- Forensics
- cryptography
- Python
- 문자열
- HackCTF
- 정렬
- SuNiNaTas
- CTF
- Web Hacking
- 그리디 알고리즘
- Incognito
- Web
- C
- 인코그니토
- php
- N0Named
- 사칙연산
- xcz.kr
- Network
- 써니나타스
- Digital Forensics
- wargame
- Text
- 구현
- MySQL
- 백준
- misc
- Database
Archives
- Today
- Total
보안을 그리다, 훈이
[Baekjoon/Python3] 9550번 아이들은 사탕을 좋아해 본문
Programming/Python & Data Structures
[Baekjoon/Python3] 9550번 아이들은 사탕을 좋아해
HooNeee 2020. 12. 6. 03:02[Baekjoon/Python3] 9550번 아이들은 사탕을 좋아해
9550번: 아이들은 사탕을 좋아해
각 테스트 케이스마다 생일파티에 최대 몇 명의 아이들이 참석할 수 있는지 하나의 정수로 출력한다.
www.acmicpc.net
t = int(input())
for i in range(t):
candy = []
t = 0
n, k = map(int, input().split())
candy = list(map(int, input().split()))
for j in candy:
t += j // k
print(t)
'Programming > Python & Data Structures' 카테고리의 다른 글
[Baekjoon/Python3/Text] 9653번 스타워즈 로고 (0) | 2020.12.06 |
---|---|
[Baekjoon/Python3] 9610번 사분면 (0) | 2020.12.06 |
[Baekjoon/Python3] 9501번 꿍의 우주여행 (0) | 2020.12.05 |
[Baekjoon/Python3] 9498번 시험 성적 (0) | 2020.12.05 |
[Baekjoon/Python3] 9366번 삼각형 분류 (0) | 2020.12.05 |
Comments