본문 바로가기
728x90
반응형

백준/20001 - 2500032

[백준] 23275번 : Knot Knowledge(JAVA) https://www.acmicpc.net/problem/23275 23275번: Knot Knowledge The first line of input consists of an integer $n$ ($2 \le n \le 50$), the number of knots Sonja needs to learn. This is followed by a line containing $n$ distinct integers $x_1, \ldots, x_n$ ($1 \le x_i \le 1\,000$), the knots that Sonja needs to learn. F www.acmicpc.net 풀이 첫 사이즈를 입력받고, 그 사이즈만큼 수를 입력받습니다. 그 후 사이즈 - 1 만큼 수를 입력받으면서 리스트의.. 2021. 10. 22.
[백준] 23251번 : 스물셋(JAVA) https://www.acmicpc.net/problem/23251 23251번: 스물셋 첫째 줄에 테스트 케이스의 수 $T$가 주어진다. 둘째 줄부터 $T$줄에 걸쳐 정수 $k$가 주어진다. www.acmicpc.net 풀이 23으로만 이루어진 수나 23의 합으로 이루어진 수는 모두 23의 곱으로 되어있다. ex) 2323 = 23 * 101 46 = 23 + 23 = 23 * 2 그러므로 입력받은 수의 곱을 출력해주면 되는 간단한 문제이다. 소스코드 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(Strin.. 2021. 10. 18.
[백준] 23207번 : Preludes(JAVA) https://www.acmicpc.net/problem/23207 23207번: Preludes Each test case is described by one line of input having the format “note tonality”, where note is one of the 17 names for the scale notes given above, and tonality is either major or minor. All note names will be upper-case, and the two accidentals ( www.acmicpc.net 풀이 문제에 나와있는 표와 예제입력을 보고 푸시면 됩니다. 소스코드 import java.io.BufferedReader; import .. 2021. 10. 13.
[백준] 23235번 : The Fastest Sorting Algorithm In The World(JAVA) https://www.acmicpc.net/problem/23235 23235번: The Fastest Sorting Algorithm In The World It is common to compare sorting algorithms based on their asymptotic speeds. Some slower algorithms like selection sort take O(N2) time to sort N items, while comparison-based sorts like merge sort can go no faster than O(N log(N)) time, under reasonable a www.acmicpc.net 풀이 sort를 한후 Case n: Sorting... done!.. 2021. 10. 12.
728x90
반응형