전체 글 573

[Java] 백준 풀기 26574 - Copier

자바 백준 26574번 브론즈 5 https://www.acmicpc.net/problem/26574 26574번: Copier Your copier broke down last week, and you need to copy a list of numbers for a class project due tomorrow! Luckily, you can use your computer to copy the numbers for you. Given a list of numbers, each on their own line, print out the number, a space, and t www.acmicpc.net 문제 보기 분류: 구현 문제 풀기 테스트 개수만큼 반복문을 실행하고, 주어진 숫자를 출력 조건에..

공부하기/백준 2023.03.21

[Java] 백준 풀기 4589 - Gnome Sequencing

자바 백준 4589번 브론즈 4 https://www.acmicpc.net/problem/4589 4589번: Gnome Sequencing In the book All Creatures of Mythology, gnomes are kind, bearded creatures, while goblins tend to be bossy and simple-minded. The goblins like to harass the gnomes by making them line up in groups of three, ordered by the length of their beards. The gnomes www.acmicpc.net 문제 보기 분류: 구현 문제 풀기 테스트 케이스만큼 반복문을 실행하면서 주어진 입력..

공부하기/백준 2023.03.20

[Java] 백준 풀기 21612 - Boiling Water

자바 백준 21612번 브론즈 4 https://www.acmicpc.net/problem/21612 21612번: Boiling Water At sea level, atmospheric pressure is 100 kPa and water begins to boil at 100◦C. As you go above sea level, atmospheric pressure decreases, and water boils at lower temperatures. As you go below sea level, atmospheric pressure increases, and water boils www.acmicpc.net 문제 보기 분류: 수학, 구현, 사칙연산 문제 풀기 입력 받은 숫자를 주어진 식에 대입하..

공부하기/백준 2023.03.19

[Java] 백준 풀기 25640 - MBTI

자바 백준 25640번 브론즈 4 https://www.acmicpc.net/problem/25640 25640번: MBTI 진호는 요즘 유행하는 심리 검사인 MBTI에 관심이 많다. MBTI는 아래와 같이 네 가지 척도로 사람들의 성격을 구분해서, 총 $16$가지의 유형중에서 자신의 유형을 찾을 수 있는 심리 검사이다. 내향( www.acmicpc.net 문제 보기 분류: 구현, 문자열 문제 풀기 첫째 줄의 진호의 타입을 입력 받고, 둘째 줄의 친구들의 수를 입력 받는다. 친구들의 수만큼 반복문을 실행하면서 친구의 타입을 입력 받는다. 이때 진호와 친구의 타입이 같을때 count 를 하나씩 늘려준다. 코드 보기 import java.util.Scanner; public class Main { publi..

공부하기/백준 2023.03.18

[Java] 백준 풀기 10821 - 정수의 개

자바 백준 10821번 브론즈 4 https://www.acmicpc.net/problem/14038 14038번: Tournament Selection The output will be either 1, 2, 3 (to indicate which Group the player should be placed in) or -1 (to indicate the player has been eliminated). www.acmicpc.net 문제 보기 분류: 구현 문제 풀기 입력 받는 문자에 대해 "W" 와 같으면 win_count 를 증가시킨다. 6 경기에 대해 모두 결과를 확인한 후, win_count 에 따라 조건을 나누어 필요한 문자를 출력한다. 코드 보기 import java.util.Scanner; ..

공부하기/백준 2023.03.17

[Java] 백준 풀기 15059 - hard choice

자바 백준 15059번 브론즈 4 https://www.acmicpc.net/problem/15059 15059번: Hard choice The first line contains three integers Ca, Ba and Pa (0 ≤ Ca, Ba, Pa ≤ 100), representing respectively the number of meals available for chicken, beef and pasta. The second line contains three integers Cr, Br and Pr (0 ≤ Cr, Br, Pr ≤ 100), indicati www.acmicpc.net 문제 보기 분류: 수학, 구현, 사칙연산 문제 풀기 각각의 준비된 음식 개수와 원하는 음식 개수를 차..

공부하기/백준 2023.03.16

[Java] 백준 풀기 17009 - Winning Score

자바 백준 17009번 브론즈 4 https://www.acmicpc.net/problem/17009 17009번: Winning Score The first three lines of input describe the scoring of the Apples, and the next three lines of input describe the scoring of the Bananas. For each team, the first line contains the number of successful 3-point shots, the second line contains the number of www.acmicpc.net 문제 보기 분류: 수학, 구현, 사칙연산 문제 풀기 주어진 입력에 대해 각 해당 위치..

공부하기/백준 2023.03.15

[Java] 백준 풀기 17863 - FYI

자바 백준 17863번 브론즈 4 https://www.acmicpc.net/problem/17863 17863번: FYI In the United States of America, telephone numbers within an area code consist of 7 digits: the prefix number is the first 3 digits and the line number is the last 4 digits. Traditionally, the 555 prefix number has been used to provide directory informatio www.acmicpc.net 문제 보기 분류: 구현, 문자열 문제 풀기 전화번호의 앞 세자리가 555 로 시작하는지 판단하는 문제..

공부하기/백준 2023.03.13

[Python] 백준 풀기 24883 - 자동완성

자바 백준 24883번 브론즈 4 https://www.acmicpc.net/problem/24883 24883번: 자동완성 D2는 For Developers, By Developers의 약자로, 개발자들을 위해 개발자들이 직접 만들어 가고 있는 네이버 개발자 지원 프로그램입니다. 네이버가 축적한 기술과 지식을 공유하고, 외부 개발자들을 지원 www.acmicpc.net 문제 보기 분류: 구현 문제 풀기 문자를 입력받고 그 문자가 "N" 또는 "n" 인지를 확인한다. 이 확인은 String 을 비교하는 함수 equals() 를 사용한다. 비교 결과가 "N" 또는 "n" 과 같을 경우 "Naver D2" 를 출력하고, 그렇지 않으면 "Naver Whale" 을 출력한다. 코드 보기 import java.u..

공부하기/백준 2023.03.11

[Python] 백준 풀기 14909 - 양수 개수 세기

파이썬 백준 14909번 브론즈 3 https://www.acmicpc.net/problem/14909 14909번: 양수 개수 세기 첫째 줄에 최대 1,000,000개의 정수가 주어진다. 입력으로 주어지는 정수는 -1,000,000보다 크거나 같고, 1,000,000보다 작거나 같다. www.acmicpc.net 문제 보기 분류: 구현 문제 풀기 파이썬의 list() 와 map() 으로 입력 숫자들을 배열로 입력받는다. 배열에서 하나씩 빼내어 0 보다 큰 경우 count 를 하나씩 늘려준다. 모든 숫자가 양의 정수 판단이 끝나면 count 를 출력한다. 코드 보기 import sys inputdata = sys.stdin.readline def fnIsPositiveInteger(): count = 0..

공부하기/백준 2023.03.10