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 |
Tags
- 리눅스
- JSON 형식
- java
- Python
- 파이썬
- WAS WebServer 차이
- spring
- WAS란
- 오라클
- 단순 반복 자동화
- BigDecimal
- 파이썬 가상환경
- 즐겨찾기가 가장 많은 식당 정보 출력하기
- 트레이딩 봇 만들기
- 파이썬 주식
- 리눅스 777
- 프로그래머스 소수
- JSON특징
- 리눅스 rwx
- 프로그래머스
- string format
- 프로그래머스 SQL
- JavaScript Obejct Notation
- 빗썸 API 사용
- beautifulsoup
- Web Service Architecture
- 와스 웹서버의 차이
- 변동성 돌파전략
- pybithumb
- Web Server란
Archives
- Today
- Total
IT 개발자_S
해커랭크 Brithday Chocolate 본문
반응형
# Complete the birthday function below.
def birthday(s, d, m):
result =0
for i in range(len(s) -m +1):
sumNum =0
for j in range(m) :
sumNum += s[i+j]
if(sumNum ==d) :
result+=1
return result
이중 for 문을 사용하여
기준점을 구함
반응형
'IT > 알고리즘_Python' 카테고리의 다른 글
해커랭크 The Hurdle Race (0) | 2020.03.31 |
---|---|
해커랭크 Picking Numbers (0) | 2020.03.29 |
해커랭크 Breaking the Records (0) | 2020.03.22 |
해커랭크 Kangaroo PYTHON (0) | 2020.03.13 |
해커랭크 Apple and Orange (0) | 2020.03.12 |
Comments