ens-ulm-1

google hashcode 2014 source for team ens-ulm-1
git clone https://a3nm.net/git/ens-ulm-1/
Log | Files | Refs

man.cpp (558B)


      1 
      2 #include "../louis/louis.cpp"
      3 #include "../mc/prune.cpp"
      4 
      5 int vu[N_ARETES_MAJ];
      6 
      7 int main() {
      8   lecture_entree();
      9   init_use();
     10   init_solution(_solution);
     11   //  goto_etoile2(_solution);
     12   vector<int> sol2[8];
     13   for (int i = 0; i < n_sommets; i++) {
     14     _solution[i%8].push_back(i);
     15   }
     16   complete_all(_solution);
     17   prune(_solution, sol2);
     18   complete_all(sol2);
     19   tronque_solution(sol2, t_autorise);
     20 
     21   vector<int> t = evalue_solution(sol2);
     22   for (int v = 0; v < n_vehicules; v++)
     23     fprintf(stderr, "t[%d] = %d\n", v, t[v+1]);
     24 
     25   affiche_sortie(sol2);
     26 }