Тръби в басейн
При проверка стойностите ми се получават, но Judge ми дава 46/100 .Моля дайте съвети/критики.Благодаря предварително!!!
Ето моето решение:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace trubi_v_basein
{
    class Program
    {
        static void Main(string[] args)
        {
            int V = int.Parse(Console.ReadLine());
            int P1= int.Parse(Console.ReadLine());
            int P2 = int.Parse(Console.ReadLine());
            double H = double.Parse(Console.ReadLine());
            double P3 = P2;
            double a=(((P1 + P2) * H)/V)*100;
            double d = (P1 + P2) * H - V;
            double x = P1/P3;
            double y = (x*100)/(x + 1);
            double z = (1 * 100) / (x + 1);
            if (V > (P1 + P2) * H)
            {
                Console.WriteLine("The pool is {0}% full. Pipe 1: {1}%. Pipe 2: {2}%.", a, Math.Truncate(y), Math.Truncate(z));
            }
            else if(V <= (P1 + P2) * H)
            {
                Console.WriteLine("For {0} hours the pool overflows with {1} liters.",H,d);
            }
        }
    }
}