描述
輸入行數N,打印圖形.
輸入描述
輸入只有一行,包括1個整數。(N<=15)
?
輸出描述
輸出有N行.
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;int n,f;cin>>n;for(int i=1;i<=n;i++){t=char(65+i);for(int j=1;j<=n-i;j++){cout<<' ';}f=0;for(int j=1;j<=i*2-1;j++){if(t=='A') f=1;if(!(f)) t--;else t++;t=char(t);cout<<t;}cout<<"\n";}return 0;
}
?#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
char t;
? ? int n,f;
? ? cin>>n;
? ? for(int i=1;i<=n;i++){
? ? ? ? t=char(65+i);
? ? ? ? for(int j=1;j<=n-i;j++){
? ? ? ? ? ? cout<<' ';
? ? ? ? }
? ? ? ? f=0;
? ? ? ? for(int j=1;j<=i*2-1;j++){
? ? ? ? ? ? if(t=='A') ?f=1;
? ? ? ? ? ? if(!(f)) t--;
? ? ? ? ? ? else t++;
? ? ? ? ? ? t=char(t);
? ? ? ? ? ? cout<<t;
? ? ? ? }
? ? ? ? cout<<"\n";
? ? }
?return 0;
}
?