求大佬,为什么输出都一样,就是过不了
查看原帖
求大佬,为什么输出都一样,就是过不了
527276
wangchu323楼主2022/3/14 17:44
#include<bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);

int n;cin>>n;
int l=1;
 for(int i=n;i>=1;i--){
 	for(int j=1;j<=i;j++){
 		printf("%02d",l);l++;
 	}
 	cout<<endl;
 }
  return 0;
}
2022/3/14 17:44
加载中...