techtalk_scheduling: Avoid crash running solve only one time.

This commit is contained in:
Mizux Seiha
2021-05-25 14:15:00 +02:00
parent a7d511bf77
commit 1cafe73acf

View File

@@ -267,18 +267,14 @@ public class SpeakerScheduling
public static void Main(String[] args)
{
int start = 1;
int start = 17;
if (args.Length == 1)
{
start = int.Parse(args[0]);
}
Stopwatch s = new Stopwatch();
s.Start();
for (int i = start; i < 40; i++)
{
Solve(i);
}
Solve(start);
s.Stop();
Console.WriteLine("Finished in " + s.ElapsedMilliseconds + " ms");
}