90/100 в judge на Hotel Room
На Details пише само Incorrect Answer и не мога да разбера къде е грешката. Ако някой ми каже, ще съм му благодарен:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _20_Hotel_Room
{
class Program
{
static void Main(string[] args)
{
string month = Console.ReadLine();
int nights = int.Parse(Console.ReadLine());
double priceStudio = 0;
double priceApp = 0;
if (month == "May" || month == "October")
{
priceStudio = nights * 50;
priceApp = nights * 65;
if (nights >= 7 && nights <= 14) priceStudio = priceStudio - 0.05 * priceStudio;
else if (nights > 14)
{
priceStudio = priceStudio - 0.3 * priceStudio;
priceApp = priceApp - 0.1 * priceApp;
}
}
else if (month == "June" || month == "September")
{
priceStudio = nights * 75.2;
priceApp = nights * 68.7;
if (nights > 14)
{
priceStudio = priceStudio - 0.2 * priceStudio;
priceApp = priceApp - 0.1 * priceApp;
}
}
else if (month == "July" || month == "August")
{
priceStudio = nights * 76;
priceApp = nights * 77;
if (nights > 14)
{
priceApp = priceApp - 0.1 * priceApp;
}
}
Console.WriteLine($"Apartment: {priceApp:f2} lv.");
Console.WriteLine($"Studio: {priceStudio:f2} lv.");
}
}
}