Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class TorrentPirate
- {
- static void Main()
- {
- int d = Int32.Parse(Console.ReadLine());
- int p = Int32.Parse(Console.ReadLine());
- int w = Int32.Parse(Console.ReadLine());
- double downloadTime = (double)d / 2 / 60 / 60;
- double costAtMall = downloadTime * w;
- double numberOfMovies = (double)d / 1500;
- double costAtCinema = numberOfMovies * p;
- if (costAtMall > costAtCinema)
- {
- Console.WriteLine("cinema -> {0:0.00}lv", costAtCinema);
- }
- else
- {
- Console.WriteLine("mall -> {0:0.00}lv", costAtMall);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement