(C++) - 백준(BOJ) 21591 : Laptop Sticker
https://www.acmicpc.net/problem/21591 21591번: Laptop Sticker The single line of input contains four integers $w_c$, $h_c$, $w_s$ and $h_s$ ($1 \le w_c, h_c, w_s, h_s \le 1,000$), where $w_c$ is the width of your new laptop computer, $h_c$ is the height of your new laptop computer, $w_s$ is the width of the laptop s www.acmicpc.net 눈치껏 때려맞히는 문제였습니다. 📕 풀이방법 📔 입력 및 초기화 새로산 노트북의 w, h와 스티커의 w, h를 선언 ..
(C++) - 백준(BOJ) 21354 : Äpplen och päron
https://www.acmicpc.net/problem/21354 21354번: Äpplen och päron En rad med två heltal $A,P$ ($0 \le A,P \le 1000)$, antalet äpplen Axel har lyckats sälja, och antalet päron Petra har lyckats sälja. www.acmicpc.net if문을 써보는 문제였습니다. 📕 풀이방법 📔 입력 및 초기화 판 사과의 개수 apple, 판 배의 개수 pear, axel의 매출 axel, petra의 매출 petra를 선언하고 apple, pear에 입력받습니다. 📔 풀이과정 사과 1개당 7, 배 1개당 13이므로 axel = apple * 7, petra = pear * ..