Wrong Answer
Code
#include<stdio.h>
#include<string.h>
int main()
{
int t;
scanf("%d",&t);
for(int i=1;i<=t;i++)
{
char a[100000+1];
scanf("%s",&a);
if(strlen(a)==1)
{
printf("%c\n",a[0]);
}
else
{
for(int i=0;i<strlen(a);i+=2)
{
printf("%c",a[i]);
}
}
printf("\n");
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1080 String Algorithm
- Contest
- Bangladesh 2.0
- Language
- C99 (GCC 13.2.0)
- Submit At
- 2024-08-16 16:07:18
- Judged At
- 2024-11-11 03:16:01
- Judged By
- Score
- 0
- Total Time
- 2ms
- Peak Memory
- 536.0 KiB