ens-ulm-1

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

commit 27582fde3a9fb3397f0d5c4aafaeab68b99f9808
parent b03e4a743a584f068d0cc6b9ce0075b58fa9767e
Author: Marc Jeanmougin <marc@jeanmougin.fr>
Date:   Sat,  5 Apr 2014 15:53:34 +0200

a

Diffstat:
contest/louis/louis.cpp | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/contest/louis/louis.cpp b/contest/louis/louis.cpp @@ -13,6 +13,8 @@ int cur_dist[N_SOMMETS_MAJ] ; void init_use() { FILE * f = fopen("dist","rb"); + if(!f) + fprintf(stderr,"dist not found !"); fread(use,sizeof(use),1,f); fclose(f); } @@ -63,7 +65,7 @@ int go_to( int depart, int arrivee) vector<int> complete ( vector<int> & c) { vector<int> r ; - r.push_back(c[0]); + r.push_back(c[0]); fprintf(stderr,"complete : %d\n",r.back()); for(size_t i = 0 ; i+1 < c.size() ; i++ ) { while(r.back() != c[i+1])