Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 코드품앗이
- Python
- DFS와BFS
- codingtest
- 동적계획법과최단거리역추적
- django
- cos
- Vue
- 분할정복
- C++
- android
- issue
- AndroidStudio
- 안드로이드
- 안드로이드스튜디오
- 파이썬
- 개발
- 코테
- cos pro 1급
- 코딩테스트
- Algorithm
- 동적계획법
- 알고리즘
- cos pro
- BAEKJOON
- DART
- DFS
- vuejs
- 백준
- Flutter
Archives
- Today
- Total
목록cos 비밀번호 검사 python (1)
Development Artist
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bK3MNa/btrujIwu52I/3wsj4IFWlbkUVV0YkUzFs1/img.png)
문제 유형 한줄 수정 난이도 normal Note 1. 연속된 3자리수 체크 하는 알고리즘. 연속된 x, y, z 문자 or 숫자가 있다면 y-x, z-y의 차이가 같아야 한다. Code # -*- coding: utf-8 -*- # UTF-8 encoding when using korean # 2차 9번 def solution(password): length = len(password) for i in range(length - 2): first_check = ord(password[i + 1]) - ord(password[i]) second_check = ord(password[i + 2]) - ord(password[i + 1]) if first_check == second_check and (fi..
Algorithm/COS
2022. 2. 25. 10:37