3 задача от изпита на 26-ти март
Judge ми дава 63 от 100
int a = int.Parse(Console.ReadLine());
string b = Console.ReadLine();
double c=0;
if (b=="winter")
{
if (a<=100)
{
c = 70*0.01* a;
Console.WriteLine("Somewhere in Bulgaria");
Console.WriteLine("Hotel - {0:f2}", c);
}
else if (a<=1000)
{
c = 80 * 0.01 * a;
Console.WriteLine("Somewhere in Balkans");
Console.WriteLine("Hotel - {0:f2}", c);
}
else
{
c = 90 * 0.01 * a;
Console.WriteLine("Somewhere in Europe");
Console.WriteLine("Hotel - {0:f2}", c);
}
}
if (b == "summer")
{
if (a <= 100)
{
c = 30 * 0.01 * a;
Console.WriteLine("Somewhere in Bulgaria");
Console.WriteLine("Camp - {0:f2}", c);
}
else if (a <= 1000)
{
c = 40 * 0.01 * a;
Console.WriteLine("Somewhere in Balkans");
Console.WriteLine("Camp - {0:f2}", c);
}
else
{
c = 90 * 0.01 * a;
Console.WriteLine("Somewhere in Europe");
Console.WriteLine("Hotel - {0:f2}", c);
}
}
}
}
}