Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Voleyball
- {
- class Program
- {
- static void Main(string[] args)
- {
- string year = Console.ReadLine();
- int p = int.Parse(Console.ReadLine());
- int h = int.Parse(Console.ReadLine());
- double game = ((48 - h) * 3 / 4) + h + p * 2 / 3;
- if (year == "leap")
- {
- game *= 1.15;
- }
- Console.WriteLine(Math.Floor(game));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement