非常标准的一道动态规划,记录老板位置,到达老板位置的路径条数为0即可。 #include <iostream> #include <vector> using namespace std; int main() { int x, y ,n; cin>>x>>y>>n; vector<vector<long>> res(x+1,vector<long>(y+1)); vector<vector<int>> boss(x+1,vector<int>(y+1)); in...