提交时间:2019-12-15 20:11:50
运行 ID: 3362
#include<iostream> using namespace std; int main(){ int a[11][11]; int n; int k=5; cin>>n; for(int i=1;i<=n;i++){ k=5; for(int j=1;j<=n;j++){ a[i][j]=i; if(j==1){ cout<<i<<" "; }else{ a[i][j]+=k; k+=5; cout<<a[i][j]<<" "; } } cout<<endl; } }