Hello @daft_wullie
I ran this code on ideone using the same stdin as spoj and got the required output.But I am getting a SIGSEGV error in SPOJ. Why could this be happening?
include
include
int main(void) {
// your code here
int i;
int n;
int l;
char k[25];
scanf("%d",&i);
for(n=1;n<=i;n++)
{
scanf("%s",k);
for(l=0;l<(strlen(k)/2);l+=2)
{
printf("%c",k[l]);
}
printf("\n");
}
return 0;
}
edit: I even checked it in codechef ide C(gcc 4.9.2), I didn't get the sigsegv error there also.