From 1cafe73acfd36050678d626000e1d733abcbcaf5 Mon Sep 17 00:00:00 2001 From: Mizux Seiha Date: Tue, 25 May 2021 14:15:00 +0200 Subject: [PATCH] techtalk_scheduling: Avoid crash running solve only one time. --- examples/dotnet/techtalk_scheduling.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/examples/dotnet/techtalk_scheduling.cs b/examples/dotnet/techtalk_scheduling.cs index f4f19bf5a9..c2d3aebe86 100644 --- a/examples/dotnet/techtalk_scheduling.cs +++ b/examples/dotnet/techtalk_scheduling.cs @@ -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"); }