Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
83821 sh25_huangse 数组滚动 C++ Accepted 0 MS 256 KB 393 2026-02-02 20:41:43

Tests(2/2):


#include<iostream> 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 i=0;i<n;++i) cout<<a[0][i]<<" "; return 0; }


Judgement Protocol: