stack<int> a;
for (int d7 = fini; d7 != 0; d7 = parent[d7]) {
a.push(a[d7]);
}
for (int d7=1;d7<=ans;d7++) {
cout << a.top() << " ";
a.pop();
}
齐河一中校论坛
齐河一中校论坛
stack<int> a;
for (int d7 = fini; d7 != 0; d7 = parent[d7]) {
a.push(a[d7]);
}
for (int d7=1;d7<=ans;d7++) {
cout << a.top() << " ";
a.pop();
}