Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Volley
- {
- class Program
- {
- static void Main(string[] args)
- {
- var year = Console.ReadLine();
- var holidays = double.Parse(Console.ReadLine());
- var ou = double.Parse(Console.ReadLine());
- var home = ((48 - ou) * (3.0 / 4));
- var bank = holidays * ((2.0 / 3));
- switch (year)
- {
- case "leap": Console.WriteLine(Math.Truncate((home + bank + ou) * 1.15)); break;
- case "normal": Console.WriteLine(Math.Truncate((home + bank + ou))); break;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment