Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Numerics;
- namespace snowballs
- {
- class Program
- {
- static void Main()
- {
- int n = int.Parse(Console.ReadLine());
- BigInteger maxNumber = int.MinValue;
- int snowCopy = 0;
- int timeCopy = 0;
- int qualityCopy = 0;
- for (int i = 1; i <= n; i++)
- {
- int snow = int.Parse(Console.ReadLine());
- int time = int.Parse(Console.ReadLine());
- int quality = int.Parse(Console.ReadLine());
- BigInteger value = BigInteger.Pow((snow / time), quality);
- if (value>maxNumber)
- {
- maxNumber = value;
- snowCopy = snow;
- timeCopy = time;
- qualityCopy = quality;
- }
- }
- Console.WriteLine($"{snowCopy} : {timeCopy} = {maxNumber} ({qualityCopy})");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement