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
- 선택정렬
- 퀵정렬
- 다이나믹프로그래밍
- 선택알고리즘
- C++
- 계수정렬
- 자료구조
- 버블정렬
- 안드로이드
- 수학
- 재귀
- 백준
- java
- 삽입정렬
- 프로그래밍
- 병합정렬
- 동적프로그래밍
- 정수론
- 정렬
- SNS
- 동적계획법
- 알고리즘
- DP
- 프로그래밍언어
- 백트래킹
- 자바
- 힙정렬
- Median of Medians
- 코딩테스트
- 기수정렬
Archives
- Today
- Total
목록정수론 (2)
MODE::CREATIVE
[백준][c++] 1735번: 분수 합
https://www.acmicpc.net/problem/1735문제 해석최대공약수를 이용해 기약분수 구하기알고리즘 분류수학정수론유클리드 호제법풀이최대공약수를 구한다두 분수의 합의 분모와 분자를 최대공약수로 나눠 기약분수로 만든다코드#include #include #include #include #include using namespace std;int GCD(int a, int b) { while (b != 0) { int temp = a; a = b; b = temp % a; } return a;}int main() { int a,b,c,d; cin >> a >> b >> c >> d; int numerator = a * d +..
BOJ
2024. 10. 3. 18:57
[백준][c++] 1929번: 소수 구하기
https://www.acmicpc.net/problem/1929문제 해석에라토스테네스의 체를 이용해 소수 구하기알고리즘 분류수학정수론풀이에라토스테네스의 체를 이용해 N까지의 소수를 판별한다코드#include #include #include #include #include #include using namespace std;int m, n;int arr[1000001] = {0,};int main() { cin >> m >> n; arr[0] = 1; //소수가 아님 arr[1] = 1; for (int i=2; i
BOJ
2024. 10. 2. 16:19