Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Joro__the_Football_Player
- {
- class JoroFootballPlayer
- {
- public static void Main(string[] args)
- {
- string leap = Console.ReadLine();
- int p = int.Parse(Console.ReadLine());
- int h = int.Parse(Console.ReadLine());
- int weekends = 52;
- double hometownPlays = (double)h;
- double normalPlays = (double)((weekends - hometownPlays) * 2) / 3;
- double holidayPlays = (double)p / 2;
- double allPlays = hometownPlays + normalPlays + holidayPlays;
- int allPlaysRounded = (int)Math.Floor(allPlays);
- if (leap == "t")
- {
- allPlaysRounded += 3;
- }
- Console.WriteLine(allPlaysRounded);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement