纪哲弘 • 3年前
#include<iostream> using namespace std; int main(){ int n,a[20][20],c=0; cin>>n; for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ if(i<j){ cout<<i+1<<' '; } else{ cout<<j+1<<' '; } } cout<<endl; } return 0; }
评论:
我同学说提交了你的原代码,根本不对,年纪轻轻就会在网络上骗人