Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
77458 sh25_shenpy 数组滚动 C++ 通过 0 MS 240 KB 374 2025-12-25 22:09:20

Tests(2/2):


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


测评信息: