2 条题解

  • 0
    @ 2026-4-16 19:05:57

    #include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; char A='A'; for(int i=1;i<=n;i++){ for(int j=i;j<=n;j++){ cout<<A; A++; } cout<<endl; }

    return 0;
    

    }

    • 0
      @ 2025-8-12 10:25:04
      #include<iostream>
      using namespace std;
      int main(){
          int n;
          cin>>n;
          char A='A';
          for(int i=1;i<=n;i++){
              for(int j=i;j<=n;j++){
                  cout<<A;
                  A++;
              }
              cout<<endl;
          }
      
          return 0;
      }
      
      • 1

      信息

      ID
      48
      时间
      1000ms
      内存
      256MiB
      难度
      3
      标签
      递交数
      191
      已通过
      110
      上传者