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
- 백준 2525번
- 해석
- 피라미드 출력
- 일상생활 영어표현
- 백준 9506번
- 백준 27433번
- 연속된 숫자의 합
- 잡다한 일
- 백준 2501번
- 상세 풀이
- 백준 2587번
- 직각 삼각형
- 백준 #11382번 #
- 알고리즘
- 백준 1157번
- C
- 차이
- html
- 백준 25305번
- 백준 5086번
- 배열
- Unity
- 백준 1269번
- Java
- C++
- 대칭 차집합
- 5073번
- 백준 5597번
- javascript
- 논리 연산
Archives
- Today
- Total
목록백준 1934번 (1)
YunDev
백준 1934번[C] - 상세 풀이
https://www.acmicpc.net/problem/1934 1934번: 최소공배수 두 자연수 A와 B에 대해서, A의 배수이면서 B의 배수인 자연수를 A와 B의 공배수라고 한다. 이런 공배수 중에서 가장 작은 수를 최소공배수라고 한다. 예를 들어, 6과 15의 공배수는 30, 60, 90등이 있 www.acmicpc.net #include int T; int gcd(int a, int b) { if(b == 0) return a; return gcd(b, a % b); } int main() { int x, y; scanf("%d", &T); for(int i = 0; i < T; i++) { scanf("%d %d", &x, &y); printf("%d\n", x * y / gcd(x, y));..
Programming/Baekjoon Program
2024. 1. 24. 11:42