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 b79df40fcf3281e606c46c3c84fbbf56206ed16f
parent 0ae5e0f2eeb5e2a1c29a1a8ebe3048973c0478de
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sat, 28 Mar 2015 14:57:28 +0100

fix

Diffstat:
contest/a3nm/main.cpp | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/contest/a3nm/main.cpp b/contest/a3nm/main.cpp @@ -169,12 +169,13 @@ void print_sol(int totscore) { int main(int argc, char **argv) { int TOREPLAN = atoi(argv[1]); srand(42); - output = argv[3]; if (argc == 1) { printf("syntax: ./a.out NREPLANIFY INPUT OUTPUT\n"); return 1; } + output = argv[3]; + scanf("%d%d%d", &R, &C, &A); scanf("%d%d%d%d", &L, &V, &B, &T); @@ -273,7 +274,7 @@ int main(int argc, char **argv) { print_sol(totscore); } if (totscore == prevscore) { - printf("score was %d is still %d\n", prevscore, totscore); + //printf("score was %d is still %d\n", prevscore, totscore); } if (totscore < prevscore) {