核心内容摘要
蘑菇红色旧版logo
代码思路可以观察到走相同距离的不同方向有俩螺旋线方向为右下左上按观察所得可写代码。
#includebits/stdc.h #define int long long using namespace std; const int N1e310; int dx[]{0,1,0,-1}; int dy[]{1,0,-1,0}; int a[N][N]; void solve() { int n;cinn; int x,y; if(n%
代码思路可以观察到走相同距离的不同方向有俩螺旋线方向为右下左上按观察所得可写代码。
#includebits/stdc.h #define int long long using namespace std; const int N1e310; int dx[]{0,1,0,-1}; int dy[]{1,0,-1,0}; int a[N][N]; void solve() { int n;cinn; int x,y; if(n%