Tranvick

Untitled

Aug 28th, 2012
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. #include <cstdio>
  2. #include <cstring>
  3.  
  4. int p, n;
  5. char s[256];
  6.  
  7. int main() {
  8.     scanf("%d%s",&p,s);
  9.     n = strlen(s);
  10.     for (int i = 0; i < n; ++i) if ((i + 1) % p) printf("%c",s[i]);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment