[Swift]9 [Swift/프로그래머스] Lv.01 최대공약수와 최소공배수 문제 https://school.programmers.co.kr/learn/courses/30/lessons/12940 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 소스코드 import Foundation func gcd(n:Int, m:Int) -> Int { var gcd = 0 for i in 1...max(n, m){ if (n % i == 0) && (m % i == 0) { gcd = i } } return gcd } func lcm(n:Int, m:Int) -> Int { return n * m / gcd(n: n, m: m) } func .. 2023. 1. 5. [Swift/Bronze II] 거스름돈 - 5585 문제&소스코드 https://github.com/HiImYong99/Algolithm/tree/main/%EB%B0%B1%EC%A4%80/Bronze/5585.%E2%80%85%EA%B1%B0%EC%8A%A4%EB%A6%84%EB%8F%88 GitHub - HiImYong99/Algolithm: This is a auto push repository for Baekjoon Online Judge created with [BaekjoonHub](https://githu This is a auto push repository for Baekjoon Online Judge created with [BaekjoonHub](https://github.com/BaekjoonHub/BaekjoonHub). - Git.. 2022. 12. 9. [Swift/level 1] 하샤드 수 - 12947 문제&소스코드 https://github.com/HiImYong99/Algolithm/tree/main/%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%A8%B8%EC%8A%A4/lv1/12947.%E2%80%85%ED%95%98%EC%83%A4%EB%93%9C%E2%80%85%EC%88%98 GitHub - HiImYong99/Algolithm: This is a auto push repository for Baekjoon Online Judge created with [BaekjoonHub](https://githu This is a auto push repository for Baekjoon Online Judge created with [BaekjoonHub](https:/.. 2022. 12. 6. [Swift/level 1] 문자열을 정수로 바꾸기 - 12925 문제&소스코드 https://github.com/HiImYong99/Algolithm/tree/main/%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%A8%B8%EC%8A%A4/lv1/12925.%E2%80%85%EB%AC%B8%EC%9E%90%EC%97%B4%EC%9D%84%E2%80%85%EC%A0%95%EC%88%98%EB%A1%9C%E2%80%85%EB%B0%94%EA%BE%B8%EA%B8%B0#level-1-%EB%AC%B8%EC%9E%90%EC%97%B4%EC%9D%84-%EC%A0%95%EC%88%98%EB%A1%9C-%EB%B0%94%EA%BE%B8%EA%B8%B0---12925 GitHub - HiImYong99/Algolithm: This is a auto pu.. 2022. 12. 6. 이전 1 2 3 다음 728x90