版本比较
11月29日数组综合测试-总结
正文
增加 8 行删除 8 行
80 行未改动818283848586858687888990909192939444 行未改动13914014114214314314414514614756 行未改动20420520620720820820921021121221221321421521521621721821936 行未改动25625725825926026026180 行未改动 r=r+2; } for(int k=1;k<=x;k++) s[x]=b[x]; y+=x; x/=2; y+=x; x/=2; } cout<<b[1]; return 0;} }```
#### 正确思路使用找规律方法,先将决出8强,再决出4强,2强,冠军。注意以上几个步骤都要分别写一个循环。44 行未改动 s[1]=s[1*2]; } cout<<s[1]; return 0;} }
```
### B210056 行未改动 } cout<<endl; //主对角线 int c=i-j; for(int x=1;x<=n;x++){ for(int x=1;x<=n;x++){ int y=x-c; if(y>=1&&y<=n) cout<<"("<<x<<","<<y<<") "; } // // cout<<endl; int s=i+j; for(int x=n;x>=1;x--){ for(int x=n;x>=1;x--){ int y=s-x; if(y>=1&&y<=n) cout<<"("<<x<<","<<y<<") "; } cout<<endl;36 行未改动 } } } return 0;} }```