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.Text;
- using System.Threading.Tasks;
- namespace task1
- {
- class task1
- {
- static void Main(string[] args)
- {
- long fieldGoals = long.Parse(Console.ReadLine());
- long fieldGoalsAttempts = long.Parse(Console.ReadLine());
- long threePoint = long.Parse(Console.ReadLine());
- long turnovers = long.Parse(Console.ReadLine());
- long offensiveRebunds = long.Parse(Console.ReadLine());
- long defensiveRebounds = long.Parse(Console.ReadLine());
- long freeThrows = long.Parse(Console.ReadLine());
- long freeThrowAttempts = long.Parse(Console.ReadLine());
- decimal eFG = (fieldGoals + 0.5m * threePoint) / (decimal)fieldGoalsAttempts;
- decimal tOV = turnovers / (fieldGoalsAttempts + 0.44m * freeThrowAttempts + turnovers);
- decimal oRB = (decimal)offensiveRebunds / (offensiveRebunds + defensiveRebounds);
- decimal fT = (decimal)freeThrows / fieldGoalsAttempts;
- Console.WriteLine("eFG% {0:F3}", eFG);
- Console.WriteLine("TOV% {0:F3}", tOV);
- Console.WriteLine("ORB% {0:F3}", oRB);
- Console.WriteLine("FT% {0:F3}", fT);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement