목록BaekJoon (54)
개발도생's Blog

[백준] 1284_집 주소 대문에 붙이는 주소판(호수판) 제작을 위해 입력된 값으로 규격 사이즈에 맞게 출력해 주면 되는 것이다. import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while(true) { int sum = 0; String num = br.readLine(); if(num.charAt(0) == '0')..

[백준] 10480_Oddities 문제 10480번: Oddities Some numbers are just, well, odd. For example, the number 3 is odd, because it is not a multiple of two. Numbers that are a multiple of two are not odd, they are even. More precisely, if a number n can be expressed as n = 2 ∗ k for some integer k, then n www.acmicpc.net 입력 값이 짝수인지 홀수인지 구분해 달라는 문제다. 간단한 수학 문제다. import java.io.BufferedReader; import java.io...

[백준] 9772_Quadrants 9772번: Quadrants Given the coordinates (x,y) of some points in 2-dimensional plane, find out which quadrant(Q1-Q4) the points are located. If a point is located on X-axis or Y-axis, print out AXIS instead. www.acmicpc.net x, y의 값이 주어졌을 때 좌표 어디에 점이 찍히는지 물어보는 문제이다. import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Stri..

[백준] 6887_Squares 문제 6887번: Squares Gigi likes to play with squares. She has a collection of equal-sized square tiles. Gigi wants to arrange some or all of her tiles on a table to form a solid square. What is the side length of the largest possible square that Gigi can build? For example, wh www.acmicpc.net 문제에서 Gigi라는 사람은 사각형 조각으로 정사각형을 만드는 걸 좋아한다고 한다. 그래서 가지고 있는 사각형 조각의 개수를 통해 정사각형을 만들고, 정사각형의..

[백준] 6825_Body Mass Index 문제 6825번: Body Mass Index The Body Mass Index (BMI) is one of the calculations used by doctors to assess an adult’s health. The doctor measures the patient’s height (in metres) and weight (in kilograms), then calculates the BMI using the formula BMI = weight/(height × height). www.acmicpc.net BMI 수치를 확인해서 출력 값을 다르게 하는 문제이다. import java.io.BufferedReader; import java.io...