Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Matplotlib
- autoencoder
- 프로그래머스
- pep8
- 백준
- GCP
- datascience
- GitHub Action
- FastAPI
- torchserve
- vscode
- 네이버AItech
- DeepLearning
- pytorch
- PytorchLightning
- 알고리즘
- FDS
- python
- 코딩테스트
- NLP
- leetcode
- wandb
- GIT
- NaverAItech
- Kubernetes
- Kaggle
- docker
- 완전탐색
- rnn
- github
Archives
- Today
- Total
목록알고리즘/알고리즘(초급) (9)
Sangmun
배수와 약수
1. 최대공약수를 구하는 알고리즘 (유클리드 호제법) # not using math library a = 48 b = 32 while a % b != 0: tmp = a % b a = b b = tmp print(b) # print 16 # using math library a = 48 b = 32 import math print(math.gcd(a,b)) # print 16 2. 최소공배수를 구하는 알고리즘 # not using math library a = 48 b = 32 while a % b != 0: tmp = a % b a = b b = tmp print(48*32//b) # print 96 # using math library a = 48 b = 32 import math print(math..
알고리즘/알고리즘(초급)
2022. 8. 17. 20:41