Pets Exam 2016
https://judge.softuni.bg/Contests/Practice/Index/354#1
using System;
public class Program
{
public static void Main()
{
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
double c = double.Parse(Console.ReadLine());
double x = double.Parse(Console.ReadLine());
double y = double.Parse(Console.ReadLine());
double dogfood = a * c;
double catfood = a * x;
double turtlefood = a * y / 1000;
double area = dogfood + catfood + turtlefood;
if(area<b)
{
double needed = b - area;
Console.WriteLine(" {0} kilos of food left. ", Math.Floor(needed));
}
if (area>b)
{
double needed1 = area - b;
Console.WriteLine(" {0} more kilos of food are needed. ", Math.Ceiling(needed1));
}
Console.ReadKey();
}
}
Получавам 90/100 точки, може ли някой да ми подскаже къде е проблема?