#include <stdio.h> #include <string.h> int main(){ char a[100000]; int i; int n,m; scanf ("%s",a); scanf ("%d%d",&n,&m); for (i=n;i<strlen(a);i+=m) printf ("%c",a[i]); return 0; }
#include <stdio.h> #include <string.h> int main(){ char a[100000]; int i; int n,m; scanf ("%s",a); scanf ("%d%d",&n,&m); for (i=n;i<strlen(a);i+=m) printf ("%c",a[i]); return 0; }