5 条题解

  • 1
    @ 2023-12-11 21:30:19
    #include <bits/stdc++.h> 
    using namespace std;
    #define ll long long
    ll n;
    int main(){
        cin>>n;
        for(ll i=n;i>=1;i--)
        {
            for(ll j=1;j<=i;j++)
            {
                cout<<j;
            }
            cout<<endl;
        }
        return 0;
    }
    
    • 1
      @ 2023-12-11 21:30:06
      #include <bits/stdc++.h> 
      using namespace std;
      #define ll long long
      ll n;
      int main(){
          cin>>n;
          for(ll i=n;i>=1;i--)
          {
              for(ll j=1;j<=i;j++)
              {
                  cout<<j;
              }
              cout<<endl;
          }
          return 0;
      }
      
      • 1
        @ 2023-12-11 21:30:01
        #include <bits/stdc++.h> 
        using namespace std;
        #define ll long long
        ll n;
        int main(){
            cin>>n;
            for(ll i=n;i>=1;i--)
            {
                for(ll j=1;j<=i;j++)
                {
                    cout<<j;
                }
                cout<<endl;
            }
            return 0;
        }
        
        • 1
          @ 2023-12-11 21:29:56
          #include <bits/stdc++.h> 
          using namespace std;
          #define ll long long
          ll n;
          int main(){
              cin>>n;
              for(ll i=n;i>=1;i--)
              {
                  for(ll j=1;j<=i;j++)
                  {
                      cout<<j;
                  }
                  cout<<endl;
              }
              return 0;
          }
          
          • 0
            @ 2023-5-31 15:29:53
            #include <bits/stdc++.h>
            using namespace std;
            int n;
            int main()
            {
                cin >> n;
                for (int i = n; i >= 1; i--)
                {
                    for (int j = 1; j <= i; j++)
                    {
                        cout << j;
                    }
                    cout << endl;
                }
                return 0;
            }
            
            • 1

            信息

            ID
            781
            时间
            1000ms
            内存
            64MiB
            难度
            1
            标签
            递交数
            70
            已通过
            55
            上传者