专栏文章
题解:P11679 [Algo Beat Contest 001 A] Animal Beheaded
P11679题解参与者 1已保存评论 0
文章操作
快速查看文章及其快照的属性,并进行相关操作。
- 当前评论
- 0 条
- 当前快照
- 1 份
- 快照标识符
- @miqcgzau
- 此快照首次捕获于
- 2025/12/04 02:32 3 个月前
- 此快照最后确认于
- 2025/12/04 02:32 3 个月前
CPP
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
string S;
cin >> S;
int m = N / 3;
string a = S.substr(0, m);
string b = S.substr(m, m);
string c = S.substr(2 * m, m);
cout << b + a + c << endl;
return 0;
}
相关推荐
评论
共 0 条评论,欢迎与作者交流。
正在加载评论...