CodeForces 110D——Lucky Probability(dfs+思维)

NoSuchKey