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 _11_Volleyball
- {
- class volleyball
- {
- static void Main(string[] args)
- {
- string leap = Console.ReadLine();
- int hollidays = int.Parse(Console.ReadLine());
- int weekendhometown = int.Parse(Console.ReadLine());
- int allWeekendyear = 48;
- int weekendSofia = allWeekendyear - weekendhometown;
- double games = (weekendSofia * 3.0 / 4) + (hollidays * 2.0 / 3) + weekendhometown;
- if (leap == "normal")
- {
- Console.WriteLine(Math.Truncate(games));
- }
- else if (leap == "leap")
- {
- Console.WriteLine(Math.Truncate(games * 1.15));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment