SOSdp
layout: post title: SOSdp author: "luowentaoaa" catalog: true tags: mathjax: true - codeforces - DP i = 0 pre = 0000 nex = 0001 i = 0 pre = 0010 nex = 0011 i = 0 pre = 0100 nex = 0101 i = 0 pre = 0110 nex = 0111 i = 0 pre = 1000 nex = 1001 i = 0 pre = 1010 nex = 1011 i = 0 pre = 1100 nex = 1101 i = 0 pre = 1110 nex = 1111 i = 1 pre = 0000 nex = 0010 i = 1 pre = 0001 nex = 0011 i = 1 pre = 0100 nex = 0110 i = 1 pre = 0101 nex = 0111 i = 1 pre = 1000 nex = 1010 i = 1 pre = 1001 nex = 1011 i = 1 pre = 1100 nex = 1110 i = 1 pre = 1101 nex = 1111 i = 2 pre = 0000 nex = 0100 i = 2 pre = 0001 nex =