New driver license Problem
Hi Evrybody me again ! I have problem with solution in new driver license. I cannot pass case 1 and case3. That is my code : string s = Console.ReadLine(); double number = Convert.ToInt32(Console.ReadLine()); string name = Console.ReadLine(); var xyz = name.Split(','); var xanax = xyz.Concat(new[] { s }); var z = xanax.ToArray(); Array.Sort(z); double time = 0; for (int i = 0; i < z.Length; i++) { if (z[i] == s) { double x = ++i; time = (x / number); var y = Math.Ceiling(time) * 20; Console.WriteLine(y); } } On my computer program pass case1, but on application Not ! Can someone help me ? Thanks Kajman !