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;
- namespace Problem_1
- {
- class Program
- {
- static void Main(string[] args)
- {
- int d = int.Parse(Console.ReadLine());
- int p = int.Parse(Console.ReadLine());
- int w = int.Parse(Console.ReadLine());
- decimal timeDownload = Math.Round((decimal)d / 2.0m / 60.0m / 60.0m, 4);
- decimal priceDownload = Math.Round(timeDownload * w, 2);
- decimal numberOfMovies = d / 1500m;
- decimal cinemaPrice = numberOfMovies * p;
- if (cinemaPrice >= priceDownload)
- {
- Console.WriteLine("mall -> {0:F2}lv", priceDownload);
- }
- else
- {
- Console.WriteLine("cinema -> {0:F2}lv", cinemaPrice);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement