Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
87235 黄睿杰 二维数组输出(1) C++ Accepted 1 MS 264 KB 237 2024-08-07 19:46:33

Tests(3/3):


Code:

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