Volleyball
Ако някой може да помогне?
using System;
namespace Volleyball
{
class Volleyball
{
static void Main()
{
string year = Console.ReadLine().ToLower();
int holidays = int.Parse(Console.ReadLine());
int weekendsHome = int.Parse(Console.ReadLine());
double weekInYear = 48.0;
double sofiaWeekends = weekInYear - weekendsHome;
double playSofia = 3.0 * sofiaWeekends / 4 + 3.0 * holidays/3;
double playTotal = playSofia + weekendsHome;
if (year.Equals("leap"))
{
playTotal = Math.Floor(playTotal * 15/100 + playTotal);
}
else if (year.Equals("normal"))
{
playTotal = Math.Floor(playTotal);
}
Console.WriteLine(playTotal);
}
}
}