728x90 java143 [백준] 2199번 : DNA 해독2(JAVA) https://www.acmicpc.net/problem/2199 2199번: DNA 해독 2 N개의 A, G, C, T로 구성되어 있는 DNA 염기서열이 있다. 그리고 우리는 이 염기서열을 아래의 표를 이용하여 해독을 해야 한다. 해독 방법은 염기 서열에서 제일 끝에 있는 두 개의 염기를 An-1, An이 www.acmicpc.net 풀이 해당문제는 20mb = 20000kb를 통과하면 됩니다. https://www.acmicpc.net/problem/1672 1672번: DNA 해독 N개의 A, G, C, T로 구성되어 있는 DNA 염기서열이 있다. 그리고 우리는 이 염기서열을 아래의 표를 이용하여 해독을 해야 한다. 해독 방법은 염기 서열에서 제일 끝에 있는 두 개의 염기를 An-1, An이 www.. 2021. 10. 14. [백준] 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. [백준] 23246번 : Sport Climbing Combined(JAVA) https://www.acmicpc.net/problem/23246 23246번: Sport Climbing Combined 입력은 표준입력을 사용한다. 첫째 줄에 선수의 명수를 나타내는 양의 정수 $n$ ($3 \le n \le 100$)이 주어진다. 이어 $n$개의 줄 각각에 네 정수 $b_i$, $p_i$, $q_i$, $r_i$가 주어지는데, $b_i$는 $i$번째 선수 www.acmicpc.net 풀이 분류로는 정렬이라고 되어있지만, 정렬없이도 가능합니다. 0번째에 번호 1~3번째에 순위를 입력받습니다. while문을 돌면서 number의 값을 1부터 계속해서 증가시킵니다.(값이 낮은게 1순위가 되므로) number과 1~3순위를 곱한값이 같으면 answer에 값을 넣어줍니다. 다시 한번 값이 .. 2021. 10. 11. 이전 1 ··· 15 16 17 18 19 20 21 ··· 36 다음 728x90