Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Choreography
- {
- class Choreography
- {
- static void Main(string[] args)
- {
- int steps = int.Parse(Console.ReadLine());
- int dancers = int.Parse(Console.ReadLine());
- int days = int.Parse(Console.ReadLine());
- double stepsOfDay = Math.Ceiling(steps / days / (double)steps * 100);
- double stepsPerDancer = stepsOfDay / dancers;
- if (stepsOfDay <= 13)
- {
- Console.WriteLine($" Yes, they will succeed in that goal! {stepsPerDancer:f2}%.");
- }
- else
- {
- Console.WriteLine($"No, They will not succeed in that goal! Required {stepsPerDancer:f2}% steps to be learned per day.");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement