11 条题解

  • 6
    @ 2024-2-20 10:29:41
    #include<iostream>
    using namespace std;
    int main()
    {
    	char x;
    	cin>>x;
    	cout<<"  "<<x<<endl;
    	cout<<" "<<x<<x<<x<<endl;
    	cout<<x<<x<<x<<x<<x<<endl;
            cout<<" "<<x<<x<<x<<endl;
            cout<<"  "<<x<<endl;
    	return 0;
    }
    
    • 1
      @ 2024-7-14 14:48:41

      题目分析:

      本题只需要用到最基本的输入输出,故而只需要使用 cstdio 库中的 scanfprintf 两个函数即可。

      代码如下:

      #include<cstdio>
      int main(){
      	char a;
      	scanf("%c",&a);
      	printf("  %c\n %c%c%c\n%c%c%c%c%c\n %c%c%c\n  %c",a,a,a,a,a,a,a,a,a,a,a,a,a);
      	return 0;
      }
      

      记得五星好评哦喵~ 谢谢客官啦~

      • 0
        @ 2024-10-27 14:34:59

        #include using namespace std; int main() { char x; cin>>x; cout<<" "<<x<<endl; cout<<" "<<x<<x<<x<<endl; cout<<x<<x<<x<<x<<x<<endl; cout<<" "<<x<<x<<x<<endl; cout<<" "<<x<<endl; return 0#include using namespace std; int main() { char x; cin>>x; cout<<" "<<x<<endl; cout<<" "<<x<<x<<x<<endl; cout<<x<<x<<x<<x<<x<<endl; cout<<" "<<x<<x<<x<<endl; cout<<" "<<x<<endl; return 0;#include using namespace std; int main() { char x; cin>>x; cout<<" "<<x<<endl; cout<<" "<<x<<x<<x<<endl; cout<<x<<x<<x<<x<<x<<endl; cout<<" "<<x<<x<<x<<endl; cout<<" "<<x<<endl; return 0;

        • 0
          @ 2024-10-27 14:34:39

          #include using namespace std; int main() { char x; cin>>x; cout<<" "<<x<<endl; cout<<" "<<x<<x<<x<<endl; cout<<x<<x<<x<<x<<x<<endl; cout<<" "<<x<<x<<x<<endl; cout<<" "<<x<<endl; return 0;

          • 0
            @ 2024-10-27 14:34:00

            #include using namespace std; int main() { char x; cin>>x; cout<<" "<<x<<endl; cout<<" "<<x<<x<<x<<endl; cout<<x<<x<<x<<x<<x<<endl; cout<<" "<<x<<x<<x<<endl; cout<<" "<<x<<endl; return 0;

            • 0
              @ 2024-3-17 7:41:05
              #include<iostream>
              using namespace std;
              int main()
              {
              	char x;
              	cin>>x;
              	cout<<"  "<<x<<endl;
              	cout<<" "<<x<<x<<x<<endl;
              	cout<<x<<x<<x<<x<<x<<endl;
                      cout<<" "<<x<<x<<x<<endl;
                      cout<<"  "<<x<<endl;
              	return 0;
              }
              
              • 0
                @ 2024-2-20 9:08:18

                #include using namespace std; int main() { char x; cin>>x; cout<<" "<<x<<endl; cout<<" "<<x<<x<<x<<endl; cout<<x<<x<<x<<x<<x<<endl; cout<<" "<<x<<x<<x<<endl; cout<<" "<<x<<endl; return 0; }

                • -1
                  @ 2024-2-21 9:34:11

                  #include<bits/stdc++.h> using namespace std; int main(){ char a; cin>>a; cout<<" "<<a<<endl; cout<<" "<<a<<a<<a<<endl; cout<<a<<a<<a<<a<<a<<endl; cout<<" "<<a<<a<<a<<endl; cout<<" "<<a<<endl; return 0; }

                  • -1
                    @ 2024-2-21 9:09:52
                    • #include<iostream>
                      using namespace std;
                      int main()
                      {
                      	char x;
                      	cin>>x;
                      	cout<<"  "<<x<<endl;
                      	cout<<" "<<x<<x<<x<<endl;
                      	cout<<x<<x<<x<<x<<x<<endl;
                              cout<<" "<<x<<x<<x<<endl;
                              cout<<"  "<<x<<endl;
                      	return 0;
                      }
                      

                      Copy *

                    • -1
                      @ 2024-2-21 9:09:36
                      • #include<iostream>
                        using namespace std;
                        int main()
                        {
                        	char x;
                        	cin>>x;
                        	cout<<"  "<<x<<endl;
                        	cout<<" "<<x<<x<<x<<endl;
                        	cout<<x<<x<<x<<x<<x<<endl;
                                cout<<" "<<x<<x<<x<<endl;
                                cout<<"  "<<x<<endl;
                        	return 0;
                        }
                        

                        Copy *

                      • -1
                        @ 2024-2-20 9:31:42

                        #include using namespace std; int main(){ char a; cin>>a; cout<<" "<<a<<endl; cout<<" "<<a<<a<<a<<endl; cout<<a<<a<<a<<a<<a<<endl; cout<<" "<<a<<a<<a<<endl; cout<<" "<<a<<endl; return 0; }

                        • 1

                        信息

                        ID
                        728
                        时间
                        1000ms
                        内存
                        128MiB
                        难度
                        3
                        标签
                        递交数
                        584
                        已通过
                        323
                        上传者