문제 링크입니다: www.acmicpc.net/problem/11466
11466번: Alex Origami Squares
Alex is fond of origami — Japanese art of paper folding. Most origami designs start with a square sheet of paper. Alex is going to make a present for his mother. Present’s design requires three equal square sheets of paper, but Alex has only one rectan
www.acmicpc.net
세 가지 경우의 수를 생각해야하는 문제였습니다. (더 긴 변: h, 짧은 변: w)
1. h가 w보다 3배 이상 큰 경우 (Example 2)
2. h가 w보다 1.5배 이상 크고 3배 미만인 경우
3. h가 w보다 1.5배 미만인 경우 (Example 1)
개발환경:Visual Studio 2017
지적, 조언, 질문 환영입니다! 댓글 남겨주세요~
반응형
'알고리즘 > BOJ' 카테고리의 다른 글
백준 11943번 파일 옮기기 (0) | 2021.03.15 |
---|---|
백준 11549번 Identifying tea (0) | 2021.03.15 |
[KOI 초등부] 백준 10797번 10부제 (0) | 2021.03.14 |
백준 10768번 특별한 날 (0) | 2021.03.14 |
백준 10179번 쿠폰 (0) | 2021.03.14 |