public string SolveSecondTask() { _input.AddRange(Enumerable.Range(_input.Max() + 1, 1000000 - _input.Count).ToList()); _ringList = new RingList(_input); _ringList.MoveToNext(); RunGame(10000000); _ringList.SetCurrent(1); return($"{(long)_ringList.MoveToNext() * _ringList.MoveToNext()}"); }
public string SolveFirstTask() { _ringList = new RingList(_input); _ringList.MoveToNext(); RunGame(100); return(GetFirstTaskResult()); }