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;
- class Program
- {
- static void Main()
- {
- int allDataToDownLoad = int.Parse(Console.ReadLine());
- int priceForCinemaMovie = int.Parse(Console.ReadLine());
- int wifeSpending = int.Parse(Console.ReadLine());
- double downloadTime = (allDataToDownLoad / 2d);
- downloadTime /= 60d;
- downloadTime /= 60d;
- double wifeSpendingsForDownloadTime = downloadTime * wifeSpending;
- double moviesDownloaded = (allDataToDownLoad / 1500d);
- double cinemaPrice = moviesDownloaded * priceForCinemaMovie;
- if (wifeSpendingsForDownloadTime <= cinemaPrice)
- {
- Console.WriteLine("mall -> {0:f2}lv",wifeSpendingsForDownloadTime);
- }
- else
- {
- Console.WriteLine("cinema -> {0:f2}lv", cinemaPrice);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement