ens-ulm-1-2015

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

commit 74be339f15351b75ab22f6923a7138b4dc2007e2
parent 3f7e05952850ef818849e7e5e2b45023ab8767a2
Author: Marc Jeanmougin <mc@localhost.localdomain>
Date:   Sat, 28 Mar 2015 00:04:49 +0100

+7

Diffstat:
testing/blah.cpp | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/testing/blah.cpp b/testing/blah.cpp @@ -16,10 +16,11 @@ int qual(int x) { bool compare_vect(int x, int y){ if(size[x] != size[y]) return size[x]>size[y]; - if(ham[x]*size[y] != ham[y]*size[x]) - return ham[x]*size[y] < ham[y]*size[x]; - + if(ham[x] != ham[y]) + return ham[x] < ham[y]; + if(r1[x]!=r1[y]) return r1[x]<r1[y]; + return c1[x]<c1[y]; } //bool compare_vect(int x, int y){