본문 바로가기

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/06   »
일 월 화 수 목 금 토
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
  • 2018 KAKAO BLIND RECRUITMENT
  • beandefinitionstoreexception
  • 라이브템플릿
  • error
  • algorithm
  • 알고리즘
  • 문자열
  • spring security
  • Dijkstra
  • 2981
  • applicationeventpublisher
  • codility
  • counting elements
  • java
  • Python
  • 파이썬
  • API
  • Spring
  • HTTP
  • 소수
  • 최단경로
  • javascript
  • brute force
  • 코딩테스트
  • 탐욕법
  • BFS
  • 백준
  • Greedy
  • 프로그래머스
  • 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

티스토리툴바

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.