907. 객실 할인가 계산기
Easy
바이브코딩
MCPYanolja
문제 설명
야놀자 10X-THON 유형 — 객실 할인가와 성수기 여부를 계산하는 MCP 서버를 구현합니다.
1) discounted_price(price, discount_percent)
- 할인가 = price * (100 - discount_percent) // 100
- 예: discounted_price(100000, 30) -> 70000
2) is_peak(month)
- 7월, 8월이면 성수기(True), 그 외 False. month는 1~12.
- 예: is_peak(8) -> True, is_peak(3) -> False
로그인하고 풀기
AI가 자동 채점하고 즉시 정답·해설을 알려줘요. 무료.