package main import ( "fmt" ) const maxn int = 1000*1000*1000; const maxw int = 22; func wordCounts(p []int, max int) []int { n := len(p); var dim int = 2; var wd, pow, ct int; dat := make([][]int, max); cts := make([]int, max); for i := 0; i < max; i++ { dat[i] = make([]int, dim); dim *= 2; } dim = 2; for i := 0; i < max; i++ { ct = 0; // count pre-known exclusions if i>0 { for j :=0; j