public static void Main(string[] args) { var day = int.Parse(args[0]); var subtask = int.Parse(args[1]); switch (day) { case 1: switch (subtask) { case 1: Console.WriteLine(Climber.Climb(args[2])); break; case 2: Console.WriteLine(Climber.ClimbToBasement(args[2])); break; } break; case 2: switch (subtask) { case 1: Console.WriteLine(Wrapper.GetWrappingArea(args.Skip(2).ToArray())); break; case 2: Console.WriteLine(Wrapper.GetRibbonLength(args.Skip(2).ToArray())); break; } break; } }
public void ClimbTheRoute() { _climber.Climb(_route); }