Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Volleyball
- {
- using System;
- class Volleyball
- {
- static void Main()
- {
- string year = Console.ReadLine().ToLower();
- int holidays = int.Parse(Console.ReadLine());
- int weekendsHome = int.Parse(Console.ReadLine());
- int sofiaWeekends = 48 - weekendsHome;
- double playSofia = 3.0 * sofiaWeekends / 4 + 2.0 * holidays / 3;
- double playTotal = playSofia + weekendsHome;
- if (year=="leap")
- {
- playTotal *= 1.15;
- }
- Console.WriteLine((int)playTotal);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement