일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
31 |
- 백준
- select
- 정렬
- DFS
- 알고리즘
- join
- db
- Greedy
- 이펙티브자바
- 그리디알고리즘
- 너비우선탐색
- mybatis
- java
- 다이나믹프로그래밍
- DP
- 프로그래머스
- 깊이우선탐색
- IntelliJ
- 피보나치
- 탐욕법
- springboot
- Spring
- Database
- Effective Java
- 우선순위큐
- 코테
- BFS
- 데이터베이스
- mariaDB
- SQL
- Today
- Total
목록java (150)
땀두 블로그

이 문제를 풀기에 앞서 같은 문제지만 조금 더 간단한 문제들은 아래 링크를 따라가면 있다. https://ddamdoo.tistory.com/100 https://ddamdoo.tistory.com/101 import java.util.Arrays; import java.util.Scanner; public class p10989 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] ary = new int[n]; for (int i = 0; i < n; i++) { ary[i] = sc.nextInt()..

2750번의 수 정렬하기와 같지만 입력의 값이 1,000,000까지 증가하였다. 같은 문제인 2750을 보려면 아래 링크를 들어가보면 된다. https://ddamdoo.tistory.com/100 따라서 이 문제는 O(n^2)가 아닌 O(nlogn)으로 풀어야 한다. import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Collections; public class p2751 { public static void main(String[] args) throws IOException{ // TODO Auto-gen..

import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class p2750 { public static void main(String[] args) throws IOException { // TODO Auto-generated method stub BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; int a = Integer.parseInt(br.readLine()); int[] ary = new int[..

import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class p7568 { public static void main(String[] args) throws IOException { // TODO Auto-generated method stub BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine(), " "); int a = Integer.par..

import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class p1436 { public static void main(String[] args) throws IOException { // TODO Auto-generated method stub BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine(), " "); int a = Integer.par..