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 _01_FourFactors
- {
- class FourFactors
- {
- static void Main(string[] args)
- {
- uint FG = uint.Parse(Console.ReadLine());
- uint FGA = uint.Parse(Console.ReadLine());
- uint ThreeP = uint.Parse(Console.ReadLine());
- uint TOV = uint.Parse(Console.ReadLine());
- uint ORB = uint.Parse(Console.ReadLine());
- uint OppDRB = uint.Parse(Console.ReadLine());
- uint FT = uint.Parse(Console.ReadLine());
- uint FTA = uint.Parse(Console.ReadLine());
- double eFG = (FG + 0.5 * ThreeP) / FGA;
- double TOVp = TOV / (FGA + 0.44 * FTA + TOV);
- double ORBp = (double)ORB / (double)(ORB + OppDRB);
- double FTp = (double)FT / (double)FGA;
- Console.WriteLine("eFG% {0:F3}", eFG);
- Console.WriteLine("TOV% {0:F3}", TOVp);
- Console.WriteLine("ORB% {0:F3}", ORBp);
- Console.WriteLine("FT% {0:F3}", FTp);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement