#include<bits/stdc++.h> using namespace std; int n; string s,y; int main() { cin >> n >> s; while(s.size()){ int t = s.size(); if(t % 2 == 0) t = t / 2 - 1; else t = t / 2; y += s[t]; s.erase(s[t]); } cout << y << endl; return 0; }
这个代码为什么运行错误啊