5 条题解

  • 2
    @ 2023-10-2 21:25:28
    #include <iostream>
    using namespace std;
    int main()
    {
        int n;
        cin >> n;
        for(int i = 1; i <= n; i++)
        {
            for(int k = 1; k <= i; k++)
            {
                cout << i;
            }
            cout << endl;
        }
        return 0;
    }
    
    • 2
      @ 2023-2-28 18:40:16
      #include <bits/stdc++.h> 
      using namespace std;
      void w()
      {
          int q;
          cin>>q;
          for(int i=1;i<=q;i++)
          {
              for(int j=1;j<=i;j++)
              {
                  cout<<i;
              }
              cout<<endl;
          }
      }
      int main()
      {
          w();
          return 0;
      }
      
      
      • 1
        @ 2023-12-11 21:31:13

        #include <bits/stdc++.h> using namespace std; void w() { int q; cin>>q; for(int i=1;i<=q;i++) { for(int j=1;j<=i;j++) { cout<<i; } cout<<endl; } } int main() { w(); return 0; }

        • 1
          @ 2023-5-31 15:24:01
          #include <bits/stdc++.h>
          using namespace std;
          int n;
          int main()
          {
              cin >> n;
              for (int i = 1; i <= n; i++)
              {
                  for (int j = 1; j <= i; j++)
                  {
                      cout << i;
                  }
                  cout << endl;
              }
              return 0;
          }
          
          • 0
            @ 2023-7-14 19:15:04
            #include <bits/stdc++.h>
            using namespace std;
            int main(){
                int n;
                cin >> n;
                for (int i = 1; i <= n; i++){
                    for (int j = 1; j <= i; j++) cout << i;
                    cout << "\n";
                }
            }
            
            • 1

            信息

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