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.Numerics;
- namespace Snowballs
- {
- class Program
- {
- static void Main(string[] args)
- {
- int numberSnowballsMade = int.Parse(Console.ReadLine());
- List <double> Snowballs = new List<double>();
- double maxSnowball = 0.00;
- for (int i = 0; i < numberSnowballsMade; i++)
- {
- int snowballSnow = int.Parse(Console.ReadLine());
- int snowballTime = int.Parse(Console.ReadLine());
- int snowballQuality = int.Parse(Console.ReadLine());
- double valueSnowball = Math.Pow((snowballSnow / snowballTime),snowballQuality);
- Snowballs.Add(valueSnowball);
- }
- for (int i = 0; i < Snowballs.Count(); i++)
- {
- maxSnowball = Snowballs.Max();
- }
- Console.WriteLine(maxSnowball);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement