일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 2015 봄학기 알고리즘
- 백준
- Numpy
- Counting cells in a blob
- C++
- centuryFromYear
- Python
- shapeArea
- 파이썬머신러닝완벽가이드
- 파이썬 포렌식
- matrixElementsSum
- All Longest Strings
- almostIncreasingSequence
- flask
- til
- 수 정렬하기
- Daily Commit
- 2750
- baekjun
- 피보나치 수
- codesignal
- data_structure
- 10953
- cpp
- recursion
- adjacentElementsProduct
- markdown
- collections.deque
- Sequential Search
- codesingal
Archives
- Today
- Total
Introfor
[백준] 1316번 그룹 단어 체커
바로 나오는 단어를 통해 정렬한 단어가 입력 받은 단어와 같은지 비교해서 풀었는데.. 찾아보니 이렇게 푼 사람들이 많았다 1 2 3 4 5 6 7 8 9 10 11 def solution(): res_ = 0 for i in range(int(input())): word = input() if list(word) == sorted(word, key=word.find): res_ += 1 return res_ res = solution() print(res) Colored by Color Scripter cs 이 방법 말고 다른 방법을 생각해봐야겠다. 다른 코드 너무 단순하게만 생각했던 것 같다. 누구나 쉽게 단어의 한 알파벳과 그 다음 알파벳을 비교하는 방식으로 생각하기 쉽다. 하지만 이 방식과 다르게 ..
Programming_prob/BaekJoon
2020. 10. 7. 09:23
[백준] 2941번 크로아티아 알파벳
1일 1코딩 12345678910def solution(): croatia_alpha = ['c=', 'c-', 'dz=', 'd-', 'lj', 'nj', 's=', 'z='] string = input() for i in croatia_alpha: string = string.replace(i, '0') return len(string) res = solution()print(res)Colored by Color Scriptercs
Programming_prob/BaekJoon
2020. 10. 7. 08:58