Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Volleyball
- {
- class Voleyball
- {
- static void Main()
- {
- string leap = Console.ReadLine();
- int p = int.Parse(Console.ReadLine());
- int h = int.Parse(Console.ReadLine());
- int home = 48 - h;
- double games = home * 3.0 / 4.0 + h * 1.0 + p * 2.0 / 3.0;
- if ( leap == "leap")
- {
- games = games * 1.15;
- Console.WriteLine((int)games);
- }
- else
- {
- Console.WriteLine((int)games);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment