Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
3229 未知用户 二维数组输出(1) C++ Accepted 100 0 MS 248 KB 292 2019-12-14 18:09:25

Tests(3/3):


#include<iostream> using namespace std; int main(){ short a,c=0,i,j; cin>>a; short b[a][a]; for(i=0;i<a;i++){ for(j=0;j<a;j++){ b[i][j]=++c; } } for(i=0;i<a;i++){ for(j=0;j<a;j++){ cout<<b[i][j]<<" "; } cout<<endl; } return 0; }


Judgement Protocol: