Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text.RegularExpressions;
- using System.Numerics;
- namespace MOBA_Challenger
- {
- class Program
- {
- static void Main(string[] args)
- {
- Snowball bestBall = new Snowball();
- bestBall.snowballSnow = 0;
- bestBall.snowballTime = 0;
- bestBall.snowballQuality = 0;
- bestBall.snowballValue = 0;
- int snowballsCount = int.Parse(Console.ReadLine());
- for (int i = 0; i < snowballsCount; i++)
- {
- Snowball snowball = new Snowball();
- snowball.snowballSnow = int.Parse(Console.ReadLine());
- snowball.snowballTime = int.Parse(Console.ReadLine());
- snowball.snowballQuality = int.Parse(Console.ReadLine());
- snowball.snowballValue = BigInteger.Pow(snowball.snowballSnow / snowball.snowballTime, snowball.snowballQuality);
- if (snowball.snowballValue > bestBall.snowballValue)
- {
- bestBall = snowball;
- }
- }
- Console.WriteLine($"{bestBall.snowballSnow} : {bestBall.snowballTime} = {bestBall.snowballValue} ({bestBall.snowballQuality})");
- }
- }
- class Snowball
- {
- public int snowballSnow { get; set; }
- public int snowballTime { get; set; }
- public int snowballQuality { get; set; }
- public BigInteger snowballValue { get; set; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment