Cây thông dấu sao

View as PDF



Author:
Problem types
Allowed languages
C++, Clang, Clang++, Cobol, D, Groovy, Haskell, JS, Lua, Node JS, ObjectiveC, Prolog, Python, Scala
Points: 100 (p) Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

In ra hình vẽ sau:

Output

     *
    ***
   *****
  *******
 *********
***********
     *
     *
     *

Comments


  • 2
    HoangTrieu_2012    8:57 p.m. 2 nov, 2024


    là sao vậy mn?


    • 0
      hocdiku    9:11 p.m. 27 oct, 2024


      như này sao sai đc vậy mn


      • 0
        Mạnh_Đức    9:35 p.m. 8 oct, 2024

        include<bits/stdc++.h>

        using namespace std;
        int main () {
        cout<<" "<<endl;
        cout<<" *
        "<<endl;
        cout<<" *
        "<<endl;
        cout<<" *
        *
        "<<endl;
        cout<<" *
        *"<<endl;
        cout<<"
        **"<<endl;
        cout<<" *"<<endl;
        cout<<" *"<<endl;
        cout<<" *"<<endl;
        }
        // đc ròi nè


        • 0
          Janeskylineschool    12:49 p.m. 30 sep, 2024

          print(' ')
          print(' *
          ')
          print(' *
          ')
          print(' *
          *
          ')
          print(' *
          *')
          print('
          **')
          print(' *')
          print(' *')
          print(' *')


          • 0
            Pham_Vinh14    4:37 p.m. 27 aug, 2024

            print(' * ')
            print(' *** ')
            print(' ***** ')
            print(' ******* ')
            print(' ********* ')
            print(' *********** ')
            print(' * ')
            print(' * ')
            print(' * ')
            tại sao WA giải thích hộ tui

            2 replies

            • 0
              bqbao2710    7:36 p.m. 23 aug, 2024

              xin hỏi ai theo Đức quốc xã đấy
              🤨


              • 0
                nguyenquockinhluan    6:31 p.m. 22 aug, 2024

                ccl


                • -5
                  nguyenquockinhluan    6:28 p.m. 22 aug, 2024

                  This comment is hidden due to too much negative feedback. Click here to view it.

                  3 replies

                  • -2
                    vietnammuonnam_mvn    6:27 p.m. 22 aug, 2024

                    def is_prime(n):
                    if n <= 1:
                    return False
                    if n <= 3:
                    return True
                    if n % 2 == 0 or n % 3 == 0:
                    return False
                    i = 5
                    while i * i <= n:
                    if n % i == 0 or n % (i + 2) == 0:
                    return False
                    i += 6
                    return True

                    n = int(input())
                    if is_prime(n):
                    print("YES")
                    else:
                    print("NO")


                    • 0
                      doanngocgiahung2013    3:52 p.m. 9 jul, 2024 edited

                      [ thu hồi ]

                      • 6 more comments