Пример #1
0
void 
OLCLeague::copy_solution(ContestTraceVector &vec) const
{
  vec.clear();
  if (solution_found) {
    vec = best_solution;
  }
}
Пример #2
0
void
OLCTriangle::CopySolution(ContestTraceVector &result) const
{
  assert(num_stages <= MAX_STAGES);
  assert(solution_valid);

  result.clear();
  for (int i = 3; i >= 0; --i)
    result.append(GetPoint(solution[i]));
}
Пример #3
0
void
ContestDijkstra::CopySolution(ContestTraceVector &result) const
{
  assert(num_stages <= MAX_STAGES);
  assert(solution_valid);

  result.clear();
  for (unsigned i = 0; i < num_stages; ++i)
    result.append(GetPoint(solution[i]));
}
Пример #4
0
void
ContestDijkstra::CopySolution(ContestTraceVector &vec) const
{
  assert(num_stages <= MAX_STAGES);

  vec.clear();
  if (solution_found) {
    assert(num_stages <= MAX_STAGES);

    vec = best_solution;
  }
}