Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int n = int.Parse(Console.ReadLine()!);
- double biggestSBV = 0;
- for (int i = 0; i < n; i++)
- {
- int snowballSnow = int.Parse(Console.ReadLine()!);
- int snowballTime = int.Parse(Console.ReadLine()!);
- int snowballQuality = int.Parse(Console.ReadLine()!);
- double snowballValue = Math.Pow((snowballSnow / snowballTime), snowballQuality);
- if (snowballValue > biggestSBV)
- {
- biggestSBV = snowballValue;
- }
- }
- Console.WriteLine($"{biggestSBV:F2}");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement