Advertisement
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 _10.Volleyball
- {
- class Program
- {
- static void Main(string[] args)
- {
- string year = Console.ReadLine();
- double holidays = double.Parse(Console.ReadLine());
- double weekends = double.Parse(Console.ReadLine());
- double weekendSofia = (48 - weekends) * (3.0 / 4.0);
- double holidaysPlay = holidays * (2.0 / 3.0);
- double Playeddays = weekendSofia + holidaysPlay + weekends;
- if (year == "leap")
- {
- Playeddays = Playeddays + Playeddays * 0.15;
- Console.WriteLine(Math.Floor(Playeddays));
- }
- else if (year == "normal")
- {
- Console.WriteLine(Math.Floor(Playeddays));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement