본문 바로가기

브론즈182

[백준 18408] 3 つの整数 (Three Integers) [Python] 풀이 입력받은 세 정수 중 1, 2 중 어떤 수를 더 많이 입력받았는지 출력해주면 된다. 소스코드 소스코드 보기 출처 18408번: 3 つの整数 (Three Integers) 3 つの整数 A, B, C が与えられる.A, B, C はそれぞれ 1 または 2 である.1 と 2 のうち,どちらが多くあるか. www.acmicpc.net 2023. 5. 6.
[백준 18398] HOMWRK [Python] 풀이 입력받은 두 정수의 합과 곱을 출력해주면 된다. 소스코드 소스코드 보기 출처 18398번: HOMWRK In one of the beautiful cities of Afghanistan two sisters are going to program a simple game to help them solve their mathematics homework. Their homework asks them to calculate the sum and multiplication of two numbers. Your task is to help them to build www.acmicpc.net 2023. 5. 6.
[백준 18411] 試験 (Exam) [Python] 풀이 입력받은 세 정수 중 가장 큰 정수 두개의 합을 구하면 된다. 소스코드 소스코드 보기 출처 18411번: 試験 (Exam) JOI 君は情報の試験を 3 回受けた.試験の点数はすべて 0 以上 100 以下の整数である. JOI 君の成績は 3 回の試験の点数のうち高い方から 2 つを足し合わせた合計によって決まる. 3 回 www.acmicpc.net 2023. 5. 6.
[백준 18330] Petrol [Python] 풀이 매달 60리터의 연료를 리터당 1500원에 구매할 수 있다. 이번 달에 구매할 연료의 양과, 이월되어 싸게 구매할 수 있는 양이 주어진다. 구매할 양과 이월된 양 + 60리터의 대소를 비교해 쉽게 계산할 수 있다. 소스코드 소스코드 보기 출처 18330번: Petrol The input consists of two lines. The first line contains an integer n (0 ⩽ n ⩽ 200), specifying the amount of petrol that will be used in the next month. The second line contains an integer k (0 ⩽ k ⩽ 360), showing the quota left in Mahya’s fue.. 2023. 5. 3.
[백준18198] Basketball One-on-One [Python] 풀이 Alice 와 Barbara가 번걸아가면서 진행한 농구게임에 대한 정보가 주어진다. 중간에 게임이 끝나는 경우는 없기 때문에, 양쪽의 점수를 모두 다 더해준 후 최종점수를 기준으로 누가 이겼는지 출력해주면 된다. 소스코드 소스코드 보기 출처 18198번: Basketball One-on-One The input consists of a single line with no more than 200 characters: the record of one game. The record consists of single letters (either A or B) alternating with single numbers (either 1 or 2), and includes no spaces or other e.. 2023. 5. 2.
[백준 17874] Piece of Cake! [Python] 풀이 정수 n, h, v 입력받고, 길이가 n인 정사각형 케이크에서 각각 가로/세로로 h와 v에서 케이크를 잘라 4등분 할 때, 가장 부피가 큰 케이크의 부피를 풀력해주면 된다. 참고로 케이크의 높이는 4 이다. 가로/세로가 최댓값인 경우를 계산해주자. 소스코드 소스코드 보기 출처 17874번: Piece of Cake! The input consists of a single line containing three integers n (2 ≤ n ≤ 10 000), the length of the sides of the square cake in centimeters, h (0 < h < n), the distance of the horizontal cut from the top edge of the c.. 2023. 5. 1.