최대공약수
Google SWE Online Coding Challenge Internship 2021
GOCC15: Google SWE Online Coding Challenge Internship 2021 - GeeksforGeeks A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions. www.geeksforgeeks.org ✔️ Second Question: Divisibility Count Find the number of N digit integers divisible by b..
[2609] 최대공약수와 최소공배수(C)
문제 2609번: 최대공약수와 최소공배수 첫째 줄에는 입력으로 주어진 두 수의 최대공약수를,둘째 줄에는 입력으로 주어진 두 수의 최소 공배수를 출력한다. www.acmicpc.net 프로그래머스 1단계 두 문제 중에 첫번째 문제가 이 문제와 유사한 문제였다. 왠걸.... 알고리즘이 생각이 안나... 분명 이 문제를 풀고 심지어 발표도 했었는데 이게 기억이 안나다니 진짜 심각성을 느끼고 기초부터 다시 잡기 위해 10달전 문제를 리뷰해보려고 한다^^ 🔎 해결 방법 이 문제의 알고리즘이 기억나지 않았던 이유는 단순하다. 그 당시에 내것으로 만들지 않았기 때문... 최대공약수를 구하기 위해서는 유클리드 호제법이라는 알고리즘을 사용하면 되고 최소공배수를 구하기 위해서는 미리 구해두었던 최대공약수를 활용해서 구할 ..