| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- 알고리즘
- 파이썬
- 정렬
- 추천시스템
- kg
- 코테
- 그래프 탐색
- bfs
- isnumeric()
- 백준
- 동적 프로그래밍
- 프로그래머스
- Recommendation
- explainable recommendation
- DP
- Deque
- Dynamic Programming
- isalpha()
- Stack
- Algorithm
- 그래프
- Python
- 우선순위 큐
- isdigit()
- 자료구조
- Knowledge graph
- find()
- knowledge
- isalnum()
- LSTM
Archives
- Today
- Total
목록datetime (1)
데린이 고인물되기
[TIL] 250916 - 파이썬 datetime 사용법
🧩"05:34"와 "04:56"의 시간 차이를 분 단위로 구하는 방법from datetime import datetimet1, t2 = "05:34", "04:56"fmt = "%H:%M"dt1 = datetime.strptime(t1, fmt)dt2 = datetime.strptime(t2, fmt)diff_minutes = abs((dt1 - dt2).seconds // 60)print(diff_minutes) # 38 🥲코테에서 더 유용한 단순 계산 (더 빠르다)h1, m1 = map(int, t1.split(":"))h2, m2 = map(int, t2.split(":"))minutes1 = h1 * 60 + m1minutes2 = h2 * 60 + m2print(abs(minutes1 - ..
Algorithm/정리
2025. 9. 17. 00:22