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 533db896c118200d225f335593f815a949b3663a
parent 03e2389b1d4f9cf7ff00a273698e99c7fa93ec95
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sat, 28 Mar 2015 16:24:27 +0100

add back init

Diffstat:
contest/a3nm/main.cpp | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/contest/a3nm/main.cpp b/contest/a3nm/main.cpp @@ -117,6 +117,12 @@ int planify(int b) { } left[t][r][c] = cscore; } + // planify loon b, t == T is sentinel + for (int t = 0; t <= T; t++) + for (int a = 0; a <= A; a++) + for (int r = 0; r < R; r++) + for (int c = 0; c < C; c++) + tab[t][a][r][c] = dir[t][a][r][c] = 0; for (int t = T-1; t >= 0; t--) { for (int a = 0; a <= A; a++) for (int r = 0; r < R; r++)