Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //thanks God For Every Thing!
- //contest link:
- /*
- // \\ ।। \\ ।। ।। ।। //
- // \\ ।। \\ ।। ।। ।। //
- // \\ ।। \\ ।। ।। ।। //
- // \\ ।। \\ ।। ।। ।। //
- // \\ ।। \\ ।। ।। ।। //
- // \\ ।। \\ ।। ।। ।।//
- // _________________ \\ ।। \\ ।। ।। ।।\\
- // _________________ \\ ।। \\ ।। ।। ।। \\
- // \\ ।। \\ ।। ।। ।। \\
- // \\ ।। \\ ।। ।। ।। \\
- // \\ ।। \\ ।। ।। ।। \\
- // \\ ।। \\।। ।। ।। \\
- */
- //#include<bits/stdc++.h>
- #include<iostream>
- #include<string>
- #include<algorithm>
- #include<cstdio>
- #define pi acose(-1)
- #define flush cin.ignore(numeric_limits<streamsize>::max(),'\n');
- #define wow ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
- #define NL "\n"
- using namespace std;
- typedef long long int ll;
- typedef double dl;
- // ---------------------- slove---------------------------//
- int main()
- {
- for(int i=1; i<=5; i++)
- {
- for(int j=i; j<=7; j++)
- {
- printf(" ");
- }
- for(int x=1; x<=(2*i)-1; x++)
- {
- if(x==1 || x==(2*i)-1)
- {
- printf("%c", 64+i);
- }
- else
- {
- printf(" ");
- }
- }
- printf("\n");
- }
- for(int i=4; i>=0; i--)
- {
- for(int j=i; j<=7; j++)
- {
- printf(" ");
- }
- for(int x=1; x<=(2*i)-1; x++)
- {
- if(x==1 || x==(2*i)-1)
- {
- printf("%c", 64+i);
- }
- else
- {
- printf(" ");
- }
- }
- printf("\n");
- }
- return 0;
- }
- /*
- A
- B B
- C C
- D D
- E E
- D D
- C C
- B B
- A
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement