ans

DOZIE 2022-07-10 14:11:46 12 返回题目

#include <bits/stdc++.h> using namespace std; int main(){ char c; cin >> c; for (char o = 'A' ; o <= c ; ++o){ for (char p = o ; p < c ; ++p){ cout << ' '; } for (char p = 'A' ; p <= o ; ++p) cout << p; for (char p = o - 1 ; p >= 'A' ; --p) cout << p; cout << endl; } return 0; }

{{ vote && vote.total.up }}