lnicola
6/24/2014 - 1:05 PM

parenthesization.c

char a[9];b(p,d){p>7?d||puts(a):(a[p]=40,b(p+1,d+1),d&&++a[p]&b(p+1,d-1));}main(){b(0,0);}