4 条题解

  • 4
    @ 2023-1-4 15:12:13

    这才是本题真正的答案:

    #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
        cout << "AAAAAAAAA" << endl;
        cout << "BBBBBBBBB" << endl;
        cout << "CCCCCCCCC" << endl;
        cout << "DDDDDDDDD" << endl;
        cout << "EEEEEEEEE" << endl;
        cout << "FFFFFFFFF" << endl;
        cout << "GGGGGGGGG" << endl;
        cout << "HHHHHHHHH" << endl;
        cout << "IIIIIIIII" << endl;
        return 0;
    }
    
    • 3
      @ 2023-10-23 19:25:31

      我来发我的正解啦!!!

      #include <bits/stdc++.h>
      using namespace std;
      int main()
      {
          char c = 'A';
          int n;
          cin >> n;
          for (int i = 1; i <= n; i++)
          {
              for (int j = 1; j <= n; j++)
                  cout << c;
              cout << endl;
              c++;
          }
          return 0;
      }
      
      • 0
        @ 2024-2-29 16:51:54
        #include<bits/stdc++.h>
        using namespace std;
        int main(){
            int n;
            cin>>n;
            for(int i=0;i<n;i++){
            	for(int j=0;j<n;j++){
                	cout<<(char)('A'+i);
            	}
                cout<<endl;
            }
            return 0;
        }
        
        • 0
          @ 2023-10-2 21:05:31
          #include<bits/stdc++.h>
          using namespace std;
          int main()
          {
              int n;
              cin>>n;
              for(int i=0;i<n;i++)
              {
                  char x;
                  for(int j=0;j<n;j++)
                  {
                      x='A'+i;
                      cout<<x;
                  }
                  cout<<endl;
              }
              return 0;
          }
          
          • 1

          信息

          ID
          971
          时间
          1000ms
          内存
          128MiB
          难度
          1
          标签
          递交数
          79
          已通过
          63
          上传者