Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Numerics;
- namespace Snowball
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- BigInteger value = 0;
- string output = "";
- 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());
- BigInteger x = BigInteger.Pow(snowballSnow / snowballTime, snowballQuality);
- if (x > value)
- {
- value = x;
- output = $"{snowballSnow} : {snowballTime} = {value} ({snowballQuality})";
- }
- }
- Console.WriteLine(output);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement