正文
增加 2 行删除 2 行
318 行未改动全部展开31932032132232332432532632736 行未改动364365366367368369370371372232 行未改动全部展开318 行未改动全部展开```cpp#include<bits/stdc++.h>using namespace std;class point{public:int x,y;void u(){y--;}void d(){y++;}void l(){x--;}36 行未改动while(p.x-1!=r[p.y-1]){p.l();s2.push_back(p);}p.u();s2.push_back(p);while(p.x!=n-1){p.r();s2.push_back(p);}if(p.y==1) {p.r();s2.push_back(p);while(p.y!=h2-1){p.d();s2.push_back(p);}break;}p.u();s2.push_back(p);}}232 行未改动全部展开318 行未改动全部展开31932032132232332432532632736 行未改动364365366367368369370371372232 行未改动全部展开318 行未改动全部展开```cpp#include<bits/stdc++.h>using namespace std;class point{public:int x,y;void u(){y--;}void d(){y++;}void l(){x--;}36 行未改动while(p.x-1!=r[p.y-1]){p.l();s2.push_back(p);}p.u();s2.push_back(p);while(p.x!=n-1){p.r();s2.push_back(p);}if(p.y==1) {p.r();s2.push_back(p);while(p.y!=h2-1){p.d();s2.push_back(p);}break;}p.u();s2.push_back(p);}}232 行未改动全部展开