Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class TravellerBob
- {
- static void Main()
- {
- string leep = Console.ReadLine();
- int contracts = int.Parse(Console.ReadLine());
- int family = int.Parse(Console.ReadLine());
- double numberOfTravels = contracts * 12;
- numberOfTravels += family * 4;
- numberOfTravels += (12 - contracts - family) * 12 * 3 / 5.0;
- if (leep == "leep")
- {
- numberOfTravels += numberOfTravels * 5 / 100;
- }
- Console.WriteLine(Math.Floor(numberOfTravels));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment