``` 백준 9020번 골드바흐의 추측 JAVA 구현해보기 ``` 이번 글을 통해 배워갈 내용 백준 9020번 풀이 https://www.acmicpc.net/problem/9020 9020번: 골드바흐의 추측 1보다 큰 자연수 중에서 1과 자기 자신을 제외한 약수가 없는 자연수를 소수라고 한다. 예를 들어, 5는 1과 5를 제외한 약수가 없기 때문에 소수이다. 하지만, 6은 6 = 2 × 3 이기 때문에 소수가 아 www.acmicpc.net 골드바흐의 추측은 2보다 큰 모든 짝수는 두 소수의 합으로 나타낼 수 있다는 것이고 이러한 수를 골드바흐 수라고 합니다. 위의 두 소수는 골드바흐 파티션이라고 합니다. 백준 9020번은 난이도 실버 등급의 문제로서 골드바흐 수 N 이 주어질 때 N을 만들 수 있는..
``` 백준 24389번 2의 보수 JAVA 구현해보기 ``` 이번 글을 통해 배워갈 내용 백준 24389번 풀이 https://www.acmicpc.net/problem/24389 24389번: 2의 보수 컴퓨터는 뺄셈을 처리할 때 내부적으로 2의 보수를 사용한다. 어떤 수의 2의 보수는 해당하는 숫자의 모든 비트를 반전시킨 뒤, 1을 더해 만들 수 있다. 이때, 32비트 기준으로 처음 표현했던 수와 www.acmicpc.net 백준 24389번은 난이도 브론즈 등급의 문제로서 32비트 정수를 입력받고 모든 비트를 반전시킨 뒤 1을 더한 보수를 찾고 보수와 처음 주어진 정수와 비트단위로 비교해서 다른 비트의 수를 출력하면 됩니다. 30분 정도 위에 링크를 방문하셔서 풀어보시고 안 풀리시는 경우에만 아래..
``` 백준 20215번 Cutting Corners JAVA 구현해보기 ``` 이번 글을 통해 배워갈 내용 백준 20215번 풀이 https://www.acmicpc.net/problem/20215 20215번: Cutting Corners A large coffee spill in the warehouse of the Busy Association of Papercutters on Caffeine has stained the corners of all paper in storage. In order to not waste money, it was decided that these dirty corners should be cut off of all pieces of paper. A few www.ac..
``` 백준 20232번 Archivist JAVA 구현해보기 ``` 이번 글을 통해 배워갈 내용 백준 20232번 풀이 https://www.acmicpc.net/problem/20232 20232번: Archivist The only line of input contains a single integer $y$ ($1995 \le y \le 2019$), denoting the year. You don't need to process year numbers less than $1995$ or greater than $2019$, or incorrect year formats. It is guaranteed that you will be given a number bet www.acmicpc.net 백..
``` 백준 20233번 Bicycle JAVA 구현해보기 ``` 이번 글을 통해 배워갈 내용 백준 20233번 풀이 https://www.acmicpc.net/problem/20233 20233번: Bicycle The first four lines of the input contain integers $a$, $x$, $b$, and $y$ ($0 \leq a, x, b, y \leq 100$), each on a separate line. The last line contains a single integer $T$ ($1 \leq T \leq 1440$) --- the total time spent on a bicycle during each day. www.acmicpc.net 백준 20233번..
``` 백준 18247번 티켓 예매 JAVA 구현해보기 ``` 이번 글을 통해 배워갈 내용 백준 18247번 풀이 https://www.acmicpc.net/problem/18247 18247번: 겨울왕국 티켓 예매 각 테스트 케이스에 대해, 한 줄에 하나씩 L열의 네 번째 자리의 좌석 번호를 출력한다. 만약 영화관에 L열 네 번째 자리가 존재하지 않는다면 -1을 출력한다. www.acmicpc.net 백준 18247번 티켓 예매는 난이도 브론즈 등급의 문제로서 위처럼 열과 행이 주어질 때 L4 번째에 인덱스를 출력하면 됩니다. 출력할 수 없다면 -1을 출력하면 됩니다. 30분 정도 위에 링크를 방문하셔서 풀어보시고 안 풀리시는 경우에만 아래 해답을 봐주시면 감사하겠습니다. L 이 알파벳에서 12번째 수..
``` 백준 20353번 Atrium JAVA 구현해보기 ``` 이번 글을 통해 배워갈 내용 백준 20353번 풀이 https://www.acmicpc.net/problem/20353 20353번: Atrium The atrium of a traditional Roman dormus, much like the atria of today, is a perfectly square room designed for residents and guests to congregate in and to enjoy the sunlight streaming in from above. Or, in the case of Britannia, the rain streaming in fro www.acmicpc.net 백준 2035..
``` 백준 20352번 Circus JAVA 구현해보기 ``` 이번 글을 통해 배워갈 내용 백준 20352번 풀이 https://www.acmicpc.net/problem/20352 20352번: Circus In the modern world, the spotlight has shifted entirely from live shows to televised recordings. Well, not entirely... One small troupe of indomitable entertainers still holds out and puts on regular circus performances. The shows are extremely popular. www.acmicpc.net 백준 20352번 ..