Advertisement
Guest User

Untitled

a guest
Nov 26th, 2015
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <string.h>
  4.  
  5. using namespace std;
  6.  
  7.     int main() {
  8.         int a;
  9.         string b;
  10.         cin >> a;
  11.         getline(cin, b);
  12.         char c[b.length];
  13.         for (int d = 1;d < a;d++) {
  14.             for (int e = a - d;e < b.length;e+=2*a-(d*2)) {
  15.                 c[e] = d[e];
  16.             }
  17.         }
  18.  
  19.         system("pause");
  20.         return 0;
  21.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement