마음만은 새내기

항상 초심을 잃지 않고 생활하겠습니다~!

프로그래밍/Baekjoon Online Judge 60

[백준] #13063 : Lobby

★ solved.ac 난이도 : B3 (작성 시점 기준) [문제 본문 링크] 13063번: Lobby There are multiple test cases in the input. Each test case appears in one line containing three space-separated integers n, m and k which respectively are the total number of members, the number of members in the Conservative Party and the number of member www.acmicpc.net ★ 문제 번역 당신은 의회에서 "보수당"의 일원입니다. "개혁당"이라는 정당이 하나 더 있습니다. 의회의 다른 구성원은 무..

[백준] #11759 : Bottled-Up Feelings

★ solved.ac 난이도 : B3 (작성 시점 기준) [문제 본문 링크] 11759번: Bottled-Up Feelings The input consists of a single line containing three positive integers s v1 v2, where s ≤ 106 is the volume of the shipment, and v1, v2 ≤ 106 are the volumes of the two types of bottles, with v1 > v2. www.acmicpc.net ★ 문제 번역 Peter는 대량의 연료유 선적을 기대하고 있지만, 작은 문제가 있습니다. (이 프로그래밍 문제에 있는 모든 사람이 그렇지는 않습니다!) 그가 가지고 있는 유일한 용기는 큰 병 세트(..

[백준] #8794 : Poniedziałki

★ solved.ac 난이도 : B3 (작성 시점 기준) [문제 본문 링크] 8794번: Poniedziałki Jarek szczerze nie cierpi poniedziałków. Zaraz po sylwestrze postanowił napisać program, który obliczy ile poniedziałków czeka go w nowym roku 2011. Ponieważ jest dobrym programistą, uogólnił program tak, aby dało się go używać także an inn www.acmicpc.net ★ 문제 번역 Jarek은 월요일을 싫어합니다. 그는 새해 전야 직후에 2011년 새해에 자신을 기다리는 월요일이 몇 개인지 계산하는 프로그..

[백준] #3507 : Automated Telephone Exchange

★ solved.ac 난이도 : B3 (작성 시점 기준) [문제 본문 링크] 3507번: Automated Telephone Exchange In St Petersburg phone numbers are formatted as “XXX–XX–XX”, where the first three digits represent index of the Automated Telephone Exchange (ATE). Each ATE has exactly 10 000 unique phone numbers. Peter has just bought a new flat and now he wants www.acmicpc.net ★ 문제 번역 St Petersburg에서 전화번호는 "XXX-XX-XX" 형식으로 되어 있으며,..

[백준] #1085 : 직사각형에서 탈출

★ solved.ac 난이도 : B3 (작성 시점 기준) [문제 본문 링크] ★ 풀이 문제에 주어진 현재 위치(x, y)와 직사각형의 크기(w, h)에서 min(min(x, y), min(w-x, h-y))의 값을 출력하시면 됩니다. min(x, y) 부분은 (0, 0)에서의 거리를 계산하기 위해 사용되고, min(w-x, h-y) 부분은 (w, h)에서의 거리를 계산하기 위해 사용됩니다. [소스 코드] HTML 삽입 미리보기할 수 없는 소스 ★ 틀린 점이 있다면 알려주세요~!