文章

81

粉丝

0

获赞

233

访问

8.1k

头像
矩阵翻转 题解:打印
P1134 西安交通大学机试题
发布于2025年3月15日 17:22
阅读数 111

#include<bits/stdc++.h>
using namespace std;
int main(){
	int n,i,j;
	int sn[100][100];
	cin>>n;
	for(i=0;i<n;i++){
		for(j=0;j<n;j++){
			cin>>sn[i][j];
		}
	}
	for(i=n-1;i>=0;i--){
		for(j=0;j<n;j++){
			cout<<sn[i][j]<<" ";
		}
		cout<<endl;
	}
	return 0;
}

 

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发