일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Java8
- OS
- TDD
- back-end
- 백준
- algorithm
- DFS
- 프로젝트
- 스프링
- 운영체제
- 자료구조
- 알고리즘
- kotlin
- 네트워크
- backtracking
- 프로그래머스
- java
- LEVEL2
- 그래프
- 코틀린
- baekjoon
- BFS
- programmers
- 백트래킹
- DP
- lambda
- 모던자바
- 자바
- Brute-force
- Spring
- Today
- Total
목록알고리즘(Java)/Brute-Force (4)
요깨비's LAB

엄청 틀렸고, 결국 다른분들의 설명을 참조하여 풀었습니다. 이 과정에서 해결한 부분들입니다. import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.StringTokenizer; public class Main { static int N; public static void main(String[] args) { YoggaebReader input = new YoggaebReader(); StringBuilder sb = new StringBuilder(); N = input.nextInt(); int[] arr = new..

import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.StringTokenizer; public class Main { static int T; static int[] A; static int[] B; public static void main(String[] args) { YoggaebReader input = new YoggaebReader(); T = input.nextInt(); StringBuilder sb = new StringBuilder(); for(int t=0;t

간만에 맞았던문제를 다시 풀어보았다. import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import java.util.StringTokenizer; public class Main { static int N; static int result = 0; static List queenTiles = new ArrayList(); public static void main(String[] args) { YoggaebReader input = new YoggaebReader(); N = input.nextIn..

import java.io.*; import java.util.StringTokenizer; public class Main { static int N, S; static int count = 0; static int[] arr; public static void main(String[] args) { YoggaebReader scr = new YoggaebReader(); N = scr.nextInt(); S = scr.nextInt(); arr = new int[N]; for (int i = 0; i < N; i++) { arr[i] = scr.nextInt(); } for (int i = 0; i < N; i++) { doAlgorithm(i, arr[i]); } System.out.print(co..