Donchef 1 Точки

## Exercises: C# Conditional Statements and Loops - Задача: 4 Hotel

Здравейте, колеги!

Имам затруднение с решението на задачата с условие:

Hotel
A hotel has three types of rooms: studio, double and master suite. The prices are different for the different months:
May and October    June and September    July, August and December
Studio - 50 leva per night    Studio - 60 leva per night    Studio - 68 leva per night
Double - 65 leva per night     Double - 72 leva per night    Double - 77 leva per night
Suite - 75 leva per night    Suite - 82 leva per night    Suite - 89 leva per night
They have also the following discounts:
For studio and more than 7 nights in May and October: 5% discount
For double and more than 14 nights in June and September: 10% discount
For suite and more than 14 nights in July, August and December: 15% discount
For studio and more than 7 nights in September and October: one night is free
Input
The input consists of exactly 2 lines:
First line: Month – May, June, July, August, September, October or December
Second line: Nights Count – an integer between [0 ... 200]
Output
Print 3 lines on the console:
On the first: “Studio: {price for the stay} lv.”
On the second: “Double: {price for the stay} lv.”
On the third: “Suite: {price for the stay} lv.”
Format the prices to the 2nd decimal place.

https://pastebin.com/TLUU9R7s

Това решение изкарва 77 точки в judge, съответно има нужда от подобрение :)
Аз мисля, че някъде влиза в грешна проверка, но не мога да разбера кой точно случай прескачам.

Благодаря предварително!

Тагове:
0