techtalk_scheduling: Avoid crash running solve only one time.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user