Trade Comission-Judge Problem or VB
Здравейте при мен програмката си работи отлично но judge ми дава 47/100.
Наистина не мога да разбера къде е грашката.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Console1
{
class Program
{
static void Main()
{
string town = Console.ReadLine().ToLower();
var sales = double.Parse(Console.ReadLine());
double comission = -1;
if (town == "sofia")
{
if(sales>=0 && sales <= 500)
{
comission =0.5;
}
else if(sales>500 && sales <= 1000)
{
comission =0.7;
}
else if(sales>1000 && sales <= 10000)
{
comission =0.8;
}
else if (sales > 10000)
{
comission =0.12;
}
Console.WriteLine("{0:f2}", comission * sales);
}
else if (town == "varna")
{
if (sales >= 0 && sales <= 500)
{
comission = 0.45;
}
else if (sales > 500 && sales <= 1000)
{
comission = 0.75;
}
else if (sales > 1000 && sales <= 10000)
{
comission = 0.10;
}
else if (sales > 10000)
{
comission = 0.13;
}
Console.WriteLine("{0:f2}", comission * sales);
}
else if (town == "plovdiv")
{
if (sales >= 0 && sales <= 500)
{
comission = 0.55;
}
else if (sales > 500 && sales <= 1000)
{
comission = 0.8;
}
else if (sales > 1000 && sales <= 10000)
{
comission = 0.12;
}
else if (sales > 10000)
{
comission = 0.145;
}
Console.WriteLine("{0:f2}", comission * sales);
}
else if(town!="sofia"|| town!="varna"|| town!="plovdiv" && sales<0)
{
Console.WriteLine("error");
}
}
}
}