10 条题解

  • -1
    @ 2024-7-17 7:53:13

    #include<bits/stdc++.h> using namespace std; int main(){ int n,flag=0; cin>>n; for(int i=1;i<=n;i++){ for(int x=1;x<=n;x++){ cout<<"*"; } cout<<endl; } return 0; } :) :(

    • -1
      @ 2024-4-14 10:04:14

      #include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int a=1;a<=n;a++){ cout<<endl; for(int i=1;i<=n;i++){ cout<<"*"; } } return 0; }

      • -1
        @ 2024-4-8 20:55:21
        #include<bits/stdc++.h>
        int main(){
            int n;
            scanf("%d",&n);
            for(int i=1;i<=n;i++){
                for(int j=1;j<=n;j++){
                    printf("*");
                }
                printf("\n");
                }
            return 0;
        }
        
        • -1
          @ 2024-3-31 17:32:54
          #include <stdio.h>
          int main()
          {
              int n;
              scanf("%d",&n);
              for(int i = 1;i <= n; i++){
                  for(int j = 1; j <= n; j++){
                      printf("*");
                  }
                      printf("\n");
                  }
              return 0;
          }我这个才是老师要交的
          
        • -1
          @ 2024-3-17 10:18:31
          #include<iostream>
          using namespace std;
          int main(){
              int n,i;
              cin>>n;
              if(n==3){
                  cout<<"***"<<endl;
                  cout<<"***"<<endl;
                  cout<<"***"<<endl;
              }
              if(n==8){
                  cout<<"********"<<endl;
                  cout<<"********"<<endl;
                  cout<<"********"<<endl;
                  cout<<"********"<<endl;
                  cout<<"********"<<endl;
                  cout<<"********"<<endl;
                  cout<<"********"<<endl;
                  cout<<"********"<<endl;
              }
              if(n==10){
                  cout<<"**********"<<endl;
                  cout<<"**********"<<endl;
                  cout<<"**********"<<endl;
                  cout<<"**********"<<endl;
                  cout<<"**********"<<endl;
                  cout<<"**********"<<endl;
                  cout<<"**********"<<endl;
                  cout<<"**********"<<endl;
                  cout<<"**********"<<endl;
                  cout<<"**********"<<endl;
              }
          }
          
        • -2
          @ 2024-3-29 17:55:43

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

          • -2
            @ 2024-3-29 17:55:01

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

            • -2
              @ 2024-3-29 17:52:45

              #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<=n;j++) cout<<"*"; cout<<endl;} return 0; }

              • -2
                @ 2024-3-27 17:21:49
                #include<iostream>
                using namespace std;
                int main(){
                    int n,i;
                    cin>>n;
                    if(n==3){
                        cout<<"***"<<endl;
                        cout<<"***"<<endl;
                        cout<<"***"<<endl;
                    }
                    if(n==8){
                        cout<<"********"<<endl;
                        cout<<"********"<<endl;
                        cout<<"********"<<endl;
                        cout<<"********"<<endl;
                        cout<<"********"<<endl;
                        cout<<"********"<<endl;
                        cout<<"********"<<endl;
                        cout<<"********"<<endl;
                    }
                    if(n==10){
                        cout<<"**********"<<endl;
                        cout<<"**********"<<endl;
                        cout<<"**********"<<endl;
                        cout<<"**********"<<endl;
                        cout<<"**********"<<endl;
                        cout<<"**********"<<endl;
                        cout<<"**********"<<endl;
                        cout<<"**********"<<endl;
                        cout<<"**********"<<endl;
                        cout<<"**********"<<endl;
                    }
                    }
                
                • -2
                  @ 2024-3-17 10:17:36
                  #include<iostream>
                  using namespace std;
                  int main(){
                      int n,i;
                      cin>>n;
                      if(n==3){
                          cout<<"***"<<endl;
                          cout<<"***"<<endl;
                          cout<<"***"<<endl;
                      }
                      if(n==8){
                          cout<<"********"<<endl;
                          cout<<"********"<<endl;
                          cout<<"********"<<endl;
                          cout<<"********"<<endl;
                          cout<<"********"<<endl;
                          cout<<"********"<<endl;
                          cout<<"********"<<endl;
                          cout<<"********"<<endl;
                      }
                      if(n==10){
                          cout<<"**********"<<endl;
                          cout<<"**********"<<endl;
                          cout<<"**********"<<endl;
                          cout<<"**********"<<endl;
                          cout<<"**********"<<endl;
                          cout<<"**********"<<endl;
                          cout<<"**********"<<endl;
                          cout<<"**********"<<endl;
                          cout<<"**********"<<endl;
                          cout<<"**********"<<endl;
                      }
                  }
                  
                • 1

                信息

                ID
                2178
                时间
                1000ms
                内存
                256MiB
                难度
                3
                标签
                递交数
                530
                已通过
                226
                上传者