Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class JoroTheFootballPlayer
- {
- static void Main()
- {
- string isLeap = Console.ReadLine();
- int p = int.Parse(Console.ReadLine());
- int h = int.Parse(Console.ReadLine());
- int weeksInYear = 52;
- int normalWeeks = weeksInYear - h;
- double gameCount =
- normalWeeks * 2d / 3d +
- h * 1d +
- p / 2d;
- if (isLeap == "t")
- {
- gameCount = gameCount + 3;
- }
- Console.WriteLine((int)gameCount);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement