提交时间:2025-05-23 20:36:10

运行 ID: 323870

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