일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Spring
- 소수
- beandefinitionstoreexception
- HTTP
- java
- Greedy
- algorithm
- BFS
- 프로그래머스
- brute force
- error
- 라이브템플릿
- codility
- spring security
- API
- 탐욕법
- 코딩테스트
- 2018 KAKAO BLIND RECRUITMENT
- 2981
- Dijkstra
- javascript
- 최단경로
- 알고리즘
- 백준
- 문자열
- applicationeventpublisher
- 파이썬
- springboot
- counting elements
Archives
- Today
- Total
목록lcm (1)
Altiora Petamus
[Python] 최소공배수 / 최대공약수
최대공약수 # new in version python 3.5 import math math.gcd(6, 8) # 2 최소공배수 def lcm(a, b): return a * b // gcd(a, b) python 3.9 버전부터는 math에 최소공배수 함수가 추가되었다. # new in version 3.9 import math math.lcm(15, 25) # 75 Reference math — Mathematical functions — Python 3.9.5 documentation math — Mathematical functions This module provides access to the mathematical functions defined by the C standard. These f..
Python
2021. 5. 22. 22:56