20分-本地上好像就没问题
查看原帖
20分-本地上好像就没问题
1177205
Jlc20110726楼主2024/6/1 10:40

o(╥﹏╥)o

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int a,b = 1;
    cin >>a;
    for (int i = 1;i <= a;i++)
    {
        for (int j = i;j <= a;j++)
        {
            if (b < 10) cout<<0;
            cout<<b/*<<" "*/;//加空格是为了方便看
            b++;
        }
        cout<<endl;
    }
    return 0;
}
2024/6/1 10:40
加载中...