Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <string.h>
- using namespace std;
- int main() {
- int a;
- string b;
- cin >> a;
- getline(cin, b);
- char c[b.length];
- for (int d = 1;d < a;d++) {
- for (int e = a - d;e < b.length;e+=2*a-(d*2)) {
- c[e] = d[e];
- }
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement