#include <iostream> #include <queue> using namespace std; int main() { queue<char> q; int n; cin >> n; for (int i = 0; i < n; i++) { char x; cin >> x; q.push(x); } while (!q.empty()) { char a = q.front(); q.push(a); cout << a; q.pop(); q.pop(); } return 0; }
微信直接扫码登录
使用经过邮箱注册的账号密码登录