版本比较
题解:P13937 [蓝桥杯 2022 省 Java B] 拉箱子
正文
增加 12 行删除 12 行
12345678910 行未改动20212223242526272817 行未改动4647484950515253545556575859606110 行未改动72737475767778798053 行未改动13413513613713813914014114214314414514614714814915015111 行未改动16316416516616716816917017164 行未改动236237238239240241242243```cpp#include<bits/stdc++.h>#define int __int128#define max(a,b) (a>b?a:b)#define min(a,b) (a<b?a:b)using namespace std;inline int read(){int x=0,f=1;char c=getchar();while(c<'0'||c>'9'){if(c=='-')f=-1;c=getchar();}10 行未改动int a[101][101],tot;bool f[20][20][20][20];int pe,bo;bool check(int people,int box){return ;}void dfs(int step,bool people,bool box,int i,int j){if(step==0&&!people&&!box){17 行未改动}dfs(tot,1,1,1,1);write(ans);return 0;}``````cpp#include<bits/stdc++.h>#define int __int128#define max(a,b) (a>b?a:b)#define min(a,b) (a<b?a:b)using namespace std;inline int read(){int x=0,f=1;char c=getchar();while(c<'0'||c>'9'){if(c=='-')f=-1;c=getchar();}10 行未改动int a[11][11],tot;bool f[15][15][15][15];int px,py,bx,by,zx,zy;struct node{int px,py,bx,by;};queue<node>q;int up[4][2]={{1,0},53 行未改动}dfs(tot,1,1,1,1,1);write(ans);return 0;}``````cpp#include<bits/stdc++.h>#define int __int128#define max(a,b) (a>b?a:b)#define min(a,b) (a<b?a:b)using namespace std;inline int read(){int x=0,f=1;char c=getchar();while(c<'0'||c>'9'){if(c=='-')f=-1;c=getchar();}11 行未改动bool f[15][15][15][15];bool book[15][15][15][15];int px,py,bx,by,zx,zy;struct node{int px,py,bx,by;};queue<node>q;int up[4][2]={{1,0},64 行未改动}dfs(tot,1,1,1,1,1);write(ans);return 0;}```12345678910 行未改动20212223242526272817 行未改动4647484950515253545556575859606110 行未改动72737475767778798053 行未改动13413513613713813914014114214314414514614714814915015111 行未改动16316416516616716816917017164 行未改动236237238239240241242243```cpp#include<bits/stdc++.h>#define int __int128#define max(a,b) (a>b?a:b)#define min(a,b) (a<b?a:b)using namespace std;inline int read(){int x=0,f=1;char c=getchar();while(c<'0'||c>'9'){if(c=='-')f=-1;c=getchar();}10 行未改动int a[101][101],tot;bool f[20][20][20][20];int pe,bo;bool check(int people,int box){return ;}void dfs(int step,bool people,bool box,int i,int j){if(step==0&&!people&&!box){17 行未改动}dfs(tot,1,1,1,1);write(ans);return 0;}``````cpp#include<bits/stdc++.h>#define int __int128#define max(a,b) (a>b?a:b)#define min(a,b) (a<b?a:b)using namespace std;inline int read(){int x=0,f=1;char c=getchar();while(c<'0'||c>'9'){if(c=='-')f=-1;c=getchar();}10 行未改动int a[11][11],tot;bool f[15][15][15][15];int px,py,bx,by,zx,zy;struct node{int px,py,bx,by;};queue<node>q;int up[4][2]={{1,0},53 行未改动}dfs(tot,1,1,1,1,1);write(ans);return 0;}``````cpp#include<bits/stdc++.h>#define int __int128#define max(a,b) (a>b?a:b)#define min(a,b) (a<b?a:b)using namespace std;inline int read(){int x=0,f=1;char c=getchar();while(c<'0'||c>'9'){if(c=='-')f=-1;c=getchar();}11 行未改动bool f[15][15][15][15];bool book[15][15][15][15];int px,py,bx,by,zx,zy;struct node{int px,py,bx,by;};queue<node>q;int up[4][2]={{1,0},64 行未改动}dfs(tot,1,1,1,1,1);write(ans);return 0;}```