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
- python
- BFS
- 브루트포스
- DP
- level0
- 운영체제
- dfs
- 파이썬
- level3
- 다이나믹 프로그래밍
- 힙
- 가상메모리
- MYSQL
- programmers
- 그리디
- 수학
- N과M
- dict
- 구현
- 재귀
- 코딩테스트
- 백준
- 딕셔너리
- 프로그래머스
- level1
- 가상메모리 관리
- 다익스트라
- BOJ
- 스택
- level2
Archives
- Today
- Total
동캄의 코딩도장
프로그래머스 level0 [숫자 찾기] 파이썬 본문
https://school.programmers.co.kr/learn/courses/30/lessons/120904
def solution(num, k):
answer = str(num).find(str(k))
if answer!=-1:
answer+=1
return answer
파이썬 내장함수를 이용하였다.
'코테 > 프로그래머스 level0' 카테고리의 다른 글
프로그래머스 level0 [겹치는 선분의 길이] 파이썬 (0) | 2023.03.05 |
---|---|
프로그래머스 level0 [평행] 파이썬 (0) | 2023.03.05 |
프로그래머스 level0 [세균 증식] 파이썬 (2) | 2023.03.05 |
프로그래머스 level 0 [종이 자르기] 파이썬 (0) | 2023.03.05 |
프로그래머스 level0 [다음에 올 숫자] 파이썬 (0) | 2023.03.05 |