提交时间:2023-08-22 16:19:24
运行 ID: 99347
#include<bits/stdc++.h> using namespace std; char a[10005]; int main(){ int cnt = 0; char x = 'a'; for (int i = 1; i <= 26; i++){ if (cnt < 2){ a[i] = x; x ++; } else{ cnt = 0; x ++; } cnt ++; } for (int i = 26; i >= 1; i--){ if (a[i] != 0){ cout << a[i] << " "; } } return 0; }