Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdio>
- #include <cstring>
- int p, n;
- char s[256];
- int main() {
- scanf("%d%s",&p,s);
- n = strlen(s);
- for (int i = 0; i < n; ++i) if ((i + 1) % p) printf("%c",s[i]);
- }
Advertisement
Add Comment
Please, Sign In to add comment