提交时间:2023-08-22 20:43:23

运行 ID: 99477

#include <bits/stdc++.h> using namespace std; stack<char> a; int main(){ for(int i = int('a');i<=int('z');i+=2){ a.push(char(i)); } while(!a.empty()){ cout<<a.top()<<" "; a.pop(); } return 0; }