본문 바로가기

Altiora Petamus

검색하기
Altiora Petamus
프로필사진 Haril Song

  • 분류 전체보기 (78)
    • Java (10)
      • Spring Framework (8)
    • Python (2)
    • DataBase (1)
    • MyProject (4)
    • 삽질하는 Error들 (5)
    • 1day-1algorithm (50)
    • Programming (1)
    • Tools (2)
      • IntelliJ IDEA (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
  • GitHub
«   2025/05   »
일 월 화 수 목 금 토
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
  • 라이브템플릿
  • 파이썬
  • 소수
  • algorithm
  • 코딩테스트
  • Python
  • applicationeventpublisher
  • error
  • brute force
  • 최단경로
  • java
  • API
  • counting elements
  • 백준
  • codility
  • javascript
  • 2018 KAKAO BLIND RECRUITMENT
  • Dijkstra
  • 프로그래머스
  • beandefinitionstoreexception
  • 2981
  • BFS
  • Spring
  • 탐욕법
  • 문자열
  • Greedy
  • HTTP
  • spring security
  • springboot
  • 알고리즘
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록GCD (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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바