Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Volleyball
- {
- class Program
- {
- static void Main(string[] args)
- {
- string typeYear = Console.ReadLine();
- double p = double.Parse(Console.ReadLine());
- double h = double.Parse(Console.ReadLine());
- double wikendsSofia = 48 - h;
- double playWeekendsSofia = wikendsSofia * 0.75;
- double hometownPlay = h;
- double HollidayPlays = p * 2.0 / 3;
- double totalGames = playWeekendsSofia + h + HollidayPlays;
- double yearLeap = totalGames + (totalGames * 0.15);
- if (typeYear == "normal")
- {
- Console.WriteLine(Math.Floor(totalGames));
- }
- else
- {
- Console.WriteLine(Math.Floor(yearLeap));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement