正文
增加 1 行删除 1 行
30 行未改动3132333435363738394030 行未改动else {ll d = 40, res = 1;while (x && d >= 0) {res = res * tg[x][40 - d] % L;x = fa[x], -- d;}cout << w[x] * res % L << endl;}}```30 行未改动3132333435363738394030 行未改动else {ll d = 40, res = 1;while (x && d >= 0) {res = res * tg[x][40 - d] % L;x = fa[x], -- d;}cout << w[x] * res % L << endl;}}```