diff --git a/12/input.txt b/12/input.txt new file mode 100644 index 0000000..c0147c6 --- /dev/null +++ b/12/input.txt @@ -0,0 +1,20 @@ +VJ-nx +start-sv +nx-UL +FN-nx +FN-zl +end-VJ +sv-hi +em-VJ +start-hi +sv-em +end-zl +zl-em +hi-VJ +FN-em +start-VJ +jx-FN +zl-sv +FN-sv +FN-hi +nx-end \ No newline at end of file diff --git a/12/solution.c b/12/solution.c new file mode 100644 index 0000000..4e59e77 --- /dev/null +++ b/12/solution.c @@ -0,0 +1,40 @@ +#include +#include +#include + + + struct{ + #define K(a\ + ,b) ((a&0x3f)\ + <<6|(b&0x3f)) + int n,e[8];} + G [K('z', + 'z' )]={ + 0} ; int p[ + 64]={ 0},l= + 0;int R(int l,int + D){ int C=0, c=p[l + -1],N ,d, i=0,j + ;if(c ==1) return + 1; for( ;i +