Advertisement
RadoslavStamboliev

Задача 2. Хореография

Jul 26th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.77 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Хореография
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int steps = int.Parse(Console.ReadLine());
  14.             int dancers = int.Parse(Console.ReadLine());
  15.             int days = int.Parse(Console.ReadLine());
  16.             double stepsOfDay = Math.Ceiling(steps / days / (double)steps * 100);
  17.             double StepsPerDancer = stepsOfDay / dancers;
  18.            
  19.             if (StepsPerDancer <= 13)
  20.             {
  21.                 Console.WriteLine($"Yes, they will succeed in that goal! {StepsPerDancer:f2}%.");
  22.             }
  23.             else
  24.             {
  25.                
  26.                 Console.WriteLine($"No, They will not succeed in that goal!Required {StepsPerDancer:f2}% steps to be learned per day.");
  27.             }
  28.         }
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement