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 |
Tags
- FDS
- rnn
- Kaggle
- GitHub Action
- NaverAItech
- datascience
- pep8
- 알고리즘
- PytorchLightning
- Matplotlib
- DeepLearning
- 완전탐색
- leetcode
- pytorch
- wandb
- 백준
- GCP
- Kubernetes
- FastAPI
- 코딩테스트
- github
- NLP
- GIT
- torchserve
- vscode
- docker
- python
- autoencoder
- 프로그래머스
- 네이버AItech
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