mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-05-10 16:20:27 +08:00
25 lines
296 B
C++
25 lines
296 B
C++
#include <iostream>
|
|
#include <iomanip>
|
|
using namespace std;
|
|
int main(){
|
|
int a;
|
|
char b='a';
|
|
cin >>a;
|
|
for(int i=a;i>=1;i--){
|
|
for(int j=(a-i)*2;j>=1;j--){
|
|
cout <<" ";
|
|
}
|
|
for(int j=i;j>=1;j--){
|
|
cout <<b<<" ";
|
|
b++;
|
|
if(b>'z'){
|
|
b-=26;
|
|
}
|
|
}
|
|
cout <<endl;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
|