荀逸萱 • 7个月前
#include<iostream>
#include<list>
#include<stack>
#include<cstring>
#include<queue>
#include<algorithm>
using namespace std;
int main(){
int n,m;
cin>>n>>m;
int a[n][n];
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
cin>>a[i][j];if(i==j||i+j==n-1)
a[i][j]+=m;
}
}
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
printf("%5d",a[i][j]);
}
cout<<endl;
}
return 0;
}
评论:
吴先生好,近来可好?我是李华,我是花木兰派来监督你生活方式健康的,我有一个太空梦,未来我相信一定会成功地成功。请谈谈你今后怎样保持健康的生活方式,要求不少于80字,内容可以适当发挥。
Theres no doubt that Li Hua gives all her love to me. I do believe she is a great person who makes my life beautiful and meaningful.
She is an easygoing and kind woman with bright eyes and a lovely smile. Although she is often busy, I still feel that I am taken good care of by her. Its a great pleasure to chat with her when I get into troubles. She always encourages me not to give up and tries to cheer me up by coming up with good solutions. In addition, I am fascinated by her cooking and writing.
With her love, I feel like a fish swimming happily in a beautiful sea. Ill cherish her love forever.