https://community.topcoder.com/stat?c=problem_statement&pm=15873
先 DP 算出不走回头路的方案数,然后减去三角形、四边形的方案数。
路上