#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
queue<char> q;
for (int i = 0; i < n; i++) {
char c;
cin >> c;
q.push(c);
}
while (!q.empty()) {
cout << q.front();
q.push(q.front());
q.pop();
q.pop();
}
return 0;
}
//模拟就可以了;
using namespace std;
int main() {
int n;
cin >> n;
queue<char> q;
for (int i = 0; i < n; i++) {
char c;
cin >> c;
q.push(c);
}
while (!q.empty()) {
cout << q.front();
q.push(q.front());
q.pop();
q.pop();
}
return 0;
}
//模拟就可以了;
0 回复
0 转发
1 喜欢
2 阅读



