06.Charity Campaign задача от Programming Basic C# ноември 2018
Колеги проблемът ми е следният;
Като пусна задачата в Judge ми дава само 20 от 100 точки.Мъча се да разбера къде ми е грешката но не успявам.
Програмата ми дава резултат който е по малко от очквания.Разгледах и други жарианти за решаването и в форума без разултат. ако някой може да удари едно рамо,ще съм благодарен.
Ето го и кода;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CharityEvent
{
    class Program
    {
        static void Main(string[] args)
        {
            int days = int.Parse(Console.ReadLine());
            int numberofChefs = int.Parse(Console.ReadLine());
            int numberofCakes = int.Parse(Console.ReadLine());
            int nummerofWafles = int.Parse(Console.ReadLine());
            int numberofPancakes = int.Parse(Console.ReadLine());
            decimal priceofCake = 45m;
            decimal priceofWafles = 5.80m;
            decimal priceofPancakes = 3.20m;
            decimal amountofCakes = numberofCakes * priceofCake;
            decimal amountofWafles = nummerofWafles * priceofWafles;
            decimal amountofPancakes = numberofPancakes * priceofPancakes;
            decimal totalDailtyprice = (priceofCake + priceofPancakes + priceofWafles) * numberofChefs;
            decimal totalPrice = totalDailtyprice * days;
            decimal priceAftercost = totalPrice - (totalPrice / 8);
            Console.WriteLine($"{priceAftercost:f2}");
        }
    }
}